Expand description
§Leptos ShadCN UI - WASM Optimized
A WASM-optimized version of ShadCN UI components for Leptos 0.8+ with minimal dependencies. This package is specifically designed for WebAssembly environments and excludes dependencies that are not WASM-compatible.
§Features
- 🚀 WASM-Optimized: Minimal dependencies, fast compilation
- 📦 Small Bundle Size: Optimized for web deployment
- 🎯 50+ Components: Complete ShadCN UI component library
- 🔧 Easy Integration: Simple API, works with existing Leptos apps
- âš¡ Feature Flags: Include only the components you need
§Usage
[dependencies]
leptos-shadcn-ui-wasm = "0.2"use leptos::prelude::*;
use leptos_shadcn_ui_wasm::prelude::*;
#[component]
pub fn App() -> impl IntoView {
view! {
<div class="p-4">
<Button>"Click me"</Button>
<Input placeholder="Enter text..." />
</div>
}
}Modules§
- bundle_
utils - Bundle size optimization utilities Utilities for optimizing bundle size in WASM
- prelude
- Convenience module for easy imports Re-exports all available components and utilities
- validation
- Input validation system for TDD implementation
- wasm_
utils - WASM-specific utilities and helpers Utilities specifically designed for WASM environments
Structs§
- Bundle
Info - Bundle information structure
- Button
Child Props - Props for child components when using as_child
- Button
Child Props NewYork - Props for child components when using as_child
- Enhanced
Alert Dialog Props - Props for the
EnhancedAlertDialogcomponent. - Enhanced
Alert Props - Props for the
EnhancedAlertcomponent. - Enhanced
Avatar Props - Props for the
EnhancedAvatarcomponent. - Enhanced
Badge Props - Props for the
EnhancedBadgecomponent. - Enhanced
Label Props - Props for the
EnhancedLabelcomponent. - Enhanced
Separator Props - Props for the
EnhancedSeparatorcomponent. - Enhanced
Skeleton Props - Props for the
EnhancedSkeletoncomponent. - Input
Validator - Input validator that applies multiple validation rules
- Signal
Managed Alert Dialog Props - Props for the
SignalManagedAlertDialogcomponent. - Signal
Managed Alert Dialog State - Signal-managed alert-dialog state
- Signal
Managed Alert Props - Props for the
SignalManagedAlertcomponent. - Signal
Managed Alert State - Signal-managed alert state
- Signal
Managed Avatar Props - Props for the
SignalManagedAvatarcomponent. - Signal
Managed Avatar State - Signal-managed avatar state
- Signal
Managed Badge Props - Props for the
SignalManagedBadgecomponent. - Signal
Managed Badge State - Signal-managed badge state
- Signal
Managed Button Child Props - Props for child components when using as_child
- Signal
Managed Button State - Signal-managed button state
- Signal
Managed Card State - Signal-managed card state
- Signal
Managed Input State - Signal-managed input state
- Signal
Managed Label Props - Props for the
SignalManagedLabelcomponent. - Signal
Managed Label State - Signal-managed label state
- Signal
Managed Separator Props - Props for the
SignalManagedSeparatorcomponent. - Signal
Managed Separator State - Signal-managed separator state
- Signal
Managed Skeleton Props - Props for the
SignalManagedSkeletoncomponent. - Signal
Managed Skeleton State - Signal-managed skeleton state
- Validation
Context - Validation context for managing multiple field validations
- Validation
Error - Validation error with field name and message
- Validation
Result - Validation result containing errors and overall validity
Enums§
- Alert
Variant - Alert variant types
- Alert
Variant NewYork - Alert variant types
- Badge
Variant - Badge variant types
- Badge
Variant NewYork - Badge variant types
- Button
Size - Button size types
- Button
Size NewYork - Button size types
- Button
Variant - Button variant types
- Button
Variant NewYork - Button variant types
- Skeleton
Size - Skeleton
Size NewYork - Skeleton
Variant - Skeleton
Variant NewYork - Validation
Rule - Validation rule types for different input validation scenarios
Functions§
- Alert
- Optional Props
- Alert
Description - Optional Props
- Alert
Description NewYork - Optional Props
- Alert
Dialog - Required Props
- Alert
Dialog Action - Optional Props
- Alert
Dialog Action NewYork - Optional Props
- Alert
Dialog Cancel - Optional Props
- Alert
Dialog Cancel NewYork - Optional Props
- Alert
Dialog Content - Optional Props
- Alert
Dialog Content NewYork - Optional Props
- Alert
Dialog Description - Optional Props
- Alert
Dialog Description NewYork - Optional Props
- Alert
Dialog Footer - Optional Props
- Alert
Dialog Footer NewYork - Optional Props
- Alert
Dialog Header - Optional Props
- Alert
Dialog Header NewYork - Optional Props
- Alert
Dialog NewYork - Required Props
- Alert
Dialog Overlay - Optional Props
- Alert
Dialog Overlay NewYork - Optional Props
- Alert
Dialog Title - Optional Props
- Alert
Dialog Title NewYork - Optional Props
- Alert
Dialog Trigger - Optional Props
- Alert
Dialog Trigger NewYork - Optional Props
- Alert
NewYork - Optional Props
- Alert
Title - Optional Props
- Alert
Title NewYork - Optional Props
- Avatar
- Optional Props
- Avatar
Fallback - Optional Props
- Avatar
Fallback NewYork - Optional Props
- Avatar
Group - Optional Props
- Avatar
Group NewYork - Optional Props
- Avatar
Image - Required Props
- Avatar
Image NewYork - Required Props
- Avatar
NewYork - Optional Props
- Badge
- Optional Props
- Badge
NewYork - Optional Props
- Button
- Optional Props
- Button
NewYork - Optional Props
- Card
- Optional Props
- Card
Content - Optional Props
- Card
Content NewYork - Optional Props
- Card
Description - Optional Props
- Card
Description NewYork - Optional Props
- Card
Footer - Optional Props
- Card
Footer NewYork - Optional Props
- Card
Header - Optional Props
- Card
Header NewYork - Optional Props
- Card
NewYork - Optional Props
- Card
Title - Optional Props
- Card
Title NewYork - Optional Props
- Enhanced
Alert - Enhanced alert component with advanced signal management
- Enhanced
Alert Dialog - Enhanced alert-dialog component with advanced signal management
- Enhanced
Avatar - Enhanced avatar component with advanced signal management
- Enhanced
Badge - Enhanced badge component with advanced signal management
- Enhanced
Button - Enhanced Button component with signal management and performance monitoring
- Enhanced
Card - Enhanced Card component with advanced signal management
- Enhanced
Input - Enhanced Input component with advanced signal management
- Enhanced
Label - Enhanced label component with advanced signal management
- Enhanced
Separator - Enhanced separator component with advanced signal management
- Enhanced
Skeleton - Enhanced skeleton component with advanced signal management
- Input
- Optional Props
- Input
NewYork - Optional Props
- Label
- Optional Props
- Label
NewYork - Optional Props
- Separator
- Optional Props
- Separator
NewYork - Optional Props
- Signal
Managed Alert - Signal-managed alert component
- Signal
Managed Alert Dialog - Signal-managed alert-dialog component
- Signal
Managed Avatar - Signal-managed avatar component
- Signal
Managed Badge - Signal-managed badge component
- Signal
Managed Button - Signal-managed Button component with advanced memory management and lifecycle optimization
- Signal
Managed Card - Signal-managed Card component
- Signal
Managed Card Content - Signal-managed CardContent component
- Signal
Managed Card Description - Signal-managed CardDescription component
- Signal
Managed Card Footer - Signal-managed CardFooter component
- Signal
Managed Card Header - Signal-managed CardHeader component
- Signal
Managed Card Title - Signal-managed CardTitle component
- Signal
Managed Input - Signal-managed Input component
- Signal
Managed Label - Signal-managed label component
- Signal
Managed Separator - Signal-managed separator component
- Signal
Managed Skeleton - Signal-managed skeleton component
- Skeleton
- Optional Props
- Skeleton
Avatar - Optional Props
- Skeleton
Avatar NewYork - Optional Props
- Skeleton
Card - Optional Props
- Skeleton
Card NewYork - Optional Props
- Skeleton
NewYork - Optional Props
- Skeleton
Text - Optional Props
- Skeleton
Text NewYork - Optional Props