| Crates.io | leptos-shadcn-ui |
| lib.rs | leptos-shadcn-ui |
| version | 0.9.0 |
| created_at | 2025-09-03 05:00:26.141575+00 |
| updated_at | 2025-09-20 02:40:32.546264+00 |
| description | A comprehensive collection of beautiful, accessible UI components built for Leptos v0.8+, inspired by shadcn/ui. Features production-ready infrastructure with automated WASM testing, E2E integration, performance benchmarking, and accessibility automation. Core components with 100% test coverage, cross-browser compatibility, and WCAG compliance. Fully compatible with Leptos v0.8 attribute system. |
| homepage | https://github.com/cloud-shuttle/leptos-shadcn-ui |
| repository | https://github.com/cloud-shuttle/leptos-shadcn-ui |
| max_upload_size | |
| id | 1822065 |
| size | 138,624 |
Production-ready ShadCN UI components for Leptos v0.8+ applications
38 components successfully published to crates.io with exemplary quality standards!
# Install any of the 38 published components
cargo add leptos-shadcn-button
cargo add leptos-shadcn-input
cargo add leptos-shadcn-card
cargo add leptos-shadcn-badge
# ... and 34 more components available!
# Use the comprehensive testing infrastructure
cargo nextest run
npx playwright test
# Run performance benchmarks
cargo bench
leptos-shadcn-ui is a comprehensive component library that brings the beautiful, accessible, and customizable ShadCN UI components to the Leptos ecosystem. Built with Rust and WebAssembly, it provides:
Add specific components to your Cargo.toml:
[dependencies]
leptos-shadcn-button = "0.4.0"
leptos-shadcn-input = "0.4.0"
leptos-shadcn-card = "0.4.0"
leptos-shadcn-checkbox = "0.4.0"
# ... add more components as needed
Use the main package with feature flags:
[dependencies]
leptos-shadcn-ui = { version = "0.5.0", features = ["button", "input", "card", "checkbox"] }
Include the performance audit system:
[dependencies]
leptos-shadcn-ui = { version = "0.5.0", features = ["button", "input", "performance-audit"] }
use leptos::*;
use leptos_shadcn_button::Button;
use leptos_shadcn_input::Input;
#[component]
pub fn MyForm() -> impl IntoView {
view! {
<div class="space-y-4">
<Input placeholder="Enter your name" />
<Button>"Submit"</Button>
</div>
}
}
Monitor and optimize your component performance with the built-in audit system:
cargo install leptos-shadcn-performance-audit
# Complete performance audit
performance-audit audit
# Analyze bundle sizes only
performance-audit bundle --components-path packages/leptos
# Monitor real-time performance
performance-audit monitor --duration 30s --sample-rate 100ms
# Generate optimization roadmap
performance-audit roadmap --output roadmap.json --format json
π Running comprehensive performance audit...
π Configuration:
Max Component Size: 5.0 KB
Max Render Time: 16.0 ms
Max Memory Usage: 1.0 MB
Output Format: Text
β³ Analyzing components...
β
Analysis complete!
π Performance Audit Results
Overall Score: 64.0/100 (D)
Meets Targets: β No
π¦ Bundle Analysis:
Overall Efficiency: 44.6%
Total Size: 23.0 KB
Average Component Size: 4.6 KB
β‘ Performance Monitoring:
Overall Score: 83.3%
Failing Components: 2
πΊοΈ Optimization Roadmap:
Total Recommendations: 6
Estimated Effort: 40.0 hours
Expected Impact: 470.0%
# Clone the repository
git clone https://github.com/cloud-shuttle/leptos-shadcn-ui.git
cd leptos-shadcn-ui
# Run the example app
cd examples/leptos
trunk serve
leptos-shadcn-button v0.4.0leptos-shadcn-input v0.4.0leptos-shadcn-label v0.4.0leptos-shadcn-checkbox v0.4.0leptos-shadcn-switch v0.4.0leptos-shadcn-radio-group v0.4.0leptos-shadcn-select v0.4.0leptos-shadcn-textarea v0.4.0leptos-shadcn-form v0.4.0leptos-shadcn-combobox v0.4.0leptos-shadcn-command v0.4.0leptos-shadcn-input-otp v0.4.0leptos-shadcn-card v0.4.0leptos-shadcn-separator v0.4.0leptos-shadcn-tabs v0.4.0leptos-shadcn-accordion v0.4.0leptos-shadcn-collapsible v0.4.0leptos-shadcn-scroll-area v0.4.0leptos-shadcn-aspect-ratio v0.4.0leptos-shadcn-resizable v0.4.0leptos-shadcn-dialog v0.4.0leptos-shadcn-popover v0.4.0leptos-shadcn-tooltip v0.4.0leptos-shadcn-alert-dialog v0.4.0leptos-shadcn-sheet v0.4.0leptos-shadcn-drawer v0.4.0leptos-shadcn-hover-card v0.4.0leptos-shadcn-breadcrumb v0.4.0leptos-shadcn-navigation-menu v0.4.0leptos-shadcn-context-menu v0.4.0leptos-shadcn-dropdown-menu v0.4.0leptos-shadcn-menubar v0.4.0leptos-shadcn-alert v0.4.0leptos-shadcn-badge v0.4.0leptos-shadcn-skeleton v0.4.0leptos-shadcn-progress v0.4.0leptos-shadcn-toast v0.4.0leptos-shadcn-table v0.4.0leptos-shadcn-calendar v0.4.0leptos-shadcn-date-picker v0.4.0leptos-shadcn-pagination v0.4.0leptos-shadcn-slider v0.4.0leptos-shadcn-toggle v0.4.0leptos-shadcn-carousel v0.4.0leptos-shadcn-avatar v0.4.0leptos-shadcn-performance-audit v0.1.0 β NEW!leptos-shadcn-error-boundary v0.4.0leptos-shadcn-lazy-loading v0.4.0leptos-shadcn-registry v0.1.0# Test individual components
cargo test --package leptos-shadcn-button --lib
cargo test --package leptos-shadcn-input --lib
# Test performance audit system
cargo test -p leptos-shadcn-performance-audit
# Test all components
cargo test --workspace
The performance audit system includes comprehensive testing:
# Run all performance audit tests (53 tests)
cargo test -p leptos-shadcn-performance-audit
# Run specific test suites
cargo test -p leptos-shadcn-performance-audit --lib
cargo test -p leptos-shadcn-performance-audit --test performance_audit_tests
# Test CLI tool
cargo run -p leptos-shadcn-performance-audit --bin performance-audit -- --help
# Install Playwright
make install-playwright
# Run all E2E tests
make test-e2e
# Run specific test categories
make test-e2e-specific FILE=tests/e2e/accessibility.spec.ts
This project represents a major achievement in component library development:
We've achieved what many enterprise teams strive for but rarely accomplish - comprehensive testing coverage at both the unit and integration levels! π
This project is licensed under the MIT License - see the LICENSE file for details.
Last Updated: December 2024
Status: β
Production Ready
Version: 0.2.0
Built with β€οΈ by the CloudShuttle team