Expand description
§Leptos ShadCN UI
A comprehensive collection of beautiful, accessible UI components built for Leptos v0.8+, inspired by shadcn/ui.
§Features
- 25+ Components: Button, Input, Card, Alert, and many more
- Leptos 0.8+: Built specifically for Leptos v0.8+ compatibility
- Accessibility First: All components follow accessibility best practices
- Tailwind CSS: Seamless integration with Tailwind CSS
- Type Safety: Full Rust type safety with proper error handling
§Usage
See the README.md for complete installation and usage instructions.
Note: Make sure to enable the features for the components you want to use:
[dependencies]
leptos-shadcn-ui = { path = "path/to/leptos-shadcn-ui/packages/leptos-shadcn-ui", features = ["button", "input", "card"] }§Components
§Form Components
- Button, Input, Label, Checkbox, Switch, Radio Group, Select, Textarea
§Layout Components
- Card, Separator, Tabs, Accordion, Dialog, Popover, Tooltip
§Feedback & Status
- Alert, Badge, Skeleton, Progress, Toast, Table, Calendar, Date Picker, Pagination
§Interactive Components
- Slider, Toggle
§Performance Monitoring
- Performance Audit System - Comprehensive performance monitoring and optimization
- Bundle Size Analysis - Component size tracking and optimization recommendations
- Real-time Monitoring - Performance metrics collection and analysis
- CLI Tool - Command-line interface for running audits and generating reports
§License
MIT License - see the LICENSE file for details.
Modules§
- prelude
- Leptos ShadCN UI Prelude
Macros§
- tw_
merge - Merges all the Tailwind classes, resolving conflicts.
Structs§
- Accordion
Content Props - Props for the
AccordionContentcomponent. - Accordion
Item Props - Props for the
AccordionItemcomponent. - Accordion
Props - Props for the
Accordioncomponent. - Accordion
Trigger Child Props - Accordion
Trigger Props - Props for the
AccordionTriggercomponent. - Alert
Description Props - Props for the
AlertDescriptioncomponent. - Alert
Props - Props for the
Alertcomponent. - Alert
Title Props - Props for the
AlertTitlecomponent. - Badge
Props - Props for the
Badgecomponent. - Breadcrumb
Ellipsis Props - Props for the
BreadcrumbEllipsiscomponent. - Breadcrumb
Item Props - Props for the
BreadcrumbItemcomponent. - Breadcrumb
Link Props - Props for the
BreadcrumbLinkcomponent. - Breadcrumb
List Props - Props for the
BreadcrumbListcomponent. - Breadcrumb
Page Props - Props for the
BreadcrumbPagecomponent. - Breadcrumb
Props - Props for the
Breadcrumbcomponent. - Breadcrumb
Separator Props - Props for the
BreadcrumbSeparatorcomponent. - Bundle
Analysis - Bundle analysis results
- Bundle
Analyzer - Component bundle analyzer for optimization
- Button
Child Props - Props for child components when using as_child
- Button
Props - Props for the
Buttoncomponent. - Calendar
Date - Calendar
Props - Props for the
Calendarcomponent. - Card
Content Props - Props for the
CardContentcomponent. - Card
Description Props - Props for the
CardDescriptioncomponent. - Card
Footer Props - Props for the
CardFootercomponent. - Card
Header Props - Props for the
CardHeadercomponent. - Card
Props - Props for the
Cardcomponent. - Card
Title Props - Props for the
CardTitlecomponent. - Checkbox
Props - Props for the
Checkboxcomponent. - Combobox
Option - Props for a combobox option
- Combobox
Props - Props for the
Comboboxcomponent. - Command
Empty Props - Props for the
CommandEmptycomponent. - Command
Group Props - Props for the
CommandGroupcomponent. - Command
Input Props - Props for the
CommandInputcomponent. - Command
Item Props - Props for the
CommandItemcomponent. - Command
List Props - Props for the
CommandListcomponent. - Command
Props - Props for the
Commandcomponent. - Command
Separator Props - Props for the
CommandSeparatorcomponent. - Command
Shortcut Props - Props for the
CommandShortcutcomponent. - Date
Picker Props - Props for the
DatePickercomponent. - Date
Picker With Range Props - Props for the
DatePickerWithRangecomponent. - Dialog
Close Props - Props for the
DialogClosecomponent. - Dialog
Content Props - Props for the
DialogContentcomponent. - Dialog
Context Value - Dialog
Description Props - Props for the
DialogDescriptioncomponent. - Dialog
Footer Props - Props for the
DialogFootercomponent. - Dialog
Header Props - Props for the
DialogHeadercomponent. - Dialog
Props - Props for the
Dialogcomponent. - Dialog
Title Props - Props for the
DialogTitlecomponent. - Dialog
Trigger Child Props - Dialog
Trigger Props - Props for the
DialogTriggercomponent. - Enhanced
Breadcrumb Props - Props for the
EnhancedBreadcrumbcomponent. - Enhanced
Calendar Props - Props for the
EnhancedCalendarcomponent. - Enhanced
Command Props - Props for the
EnhancedCommandcomponent. - Enhanced
Date Picker Props - Props for the
EnhancedDatePickercomponent. - Enhanced
Input OtpProps - Props for the
EnhancedInputOtpcomponent. - Enhanced
Pagination Props - Props for the
EnhancedPaginationcomponent. - Error
Boundary Props - Props for the
ErrorBoundarycomponent. - Error
Fallback Props - Props for the
ErrorFallbackcomponent. - Error
Info - Simple error information for production use
- Form
Control Props - Props for the
FormControlcomponent. - Form
Data - Form data structure for handling form submissions
- Form
Description Props - Props for the
FormDescriptioncomponent. - Form
Error - Form validation error
- Form
Field Props - Props for the
FormFieldcomponent. - Form
Item Props - Props for the
FormItemcomponent. - Form
Label Props - Props for the
FormLabelcomponent. - Form
Message Props - Props for the
FormMessagecomponent. - Form
Props - Props for the
Formcomponent. - Form
Validation - Form validation result
- Input
OtpProps - Props for the
InputOtpcomponent. - Input
Props - Props for the
Inputcomponent. - Label
Props - Props for the
Labelcomponent. - Lazy
Component Loader - Lazy component loader that manages dynamic imports
- Lazy
Component Props - Props for the
LazyComponentcomponent. - Pagination
Content Props - Props for the
PaginationContentcomponent. - Pagination
Ellipsis Props - Props for the
PaginationEllipsiscomponent. - Pagination
Item Props - Props for the
PaginationItemcomponent. - Pagination
Link Props - Props for the
PaginationLinkcomponent. - Pagination
Next Props - Props for the
PaginationNextcomponent. - Pagination
Previous Props - Props for the
PaginationPreviouscomponent. - Pagination
Props - Props for the
Paginationcomponent. - Popover
Props - Props for the
Popovercomponent. - Progress
Context Value - Progress
Indicator Props - Props for the
ProgressIndicatorcomponent. - Progress
Label Props - Props for the
ProgressLabelcomponent. - Progress
Props - Props for the
Progresscomponent. - Progress
Root Props - Props for the
ProgressRootcomponent. - Radio
Group Item Props - Props for the
RadioGroupItemcomponent. - Radio
Group Props - Props for the
RadioGroupcomponent. - Range
Slider Props - Props for the
RangeSlidercomponent. - Select
Content Props - Props for the
SelectContentcomponent. - Select
Context Value - Select
Group Props - Props for the
SelectGroupcomponent. - Select
Item Props - Props for the
SelectItemcomponent. - Select
Label Props - Props for the
SelectLabelcomponent. - Select
Props - Props for the
Selectcomponent. - Select
Separator Props - Props for the
SelectSeparatorcomponent. - Select
Trigger Child Props - Select
Trigger Props - Props for the
SelectTriggercomponent. - Select
Value Props - Props for the
SelectValuecomponent. - Separator
Props - Props for the
Separatorcomponent. - Signal
Managed Breadcrumb Props - Props for the
SignalManagedBreadcrumbcomponent. - Signal
Managed Breadcrumb State - Signal-managed breadcrumb state
- Signal
Managed Calendar Props - Props for the
SignalManagedCalendarcomponent. - Signal
Managed Calendar State - Signal-managed calendar state
- Signal
Managed Command Props - Props for the
SignalManagedCommandcomponent. - Signal
Managed Command State - Signal-managed command state
- Signal
Managed Date Picker Props - Props for the
SignalManagedDatePickercomponent. - Signal
Managed Date Picker State - Signal-managed date-picker state
- Signal
Managed Input OtpProps - Props for the
SignalManagedInputOtpcomponent. - Signal
Managed Input OtpState - Signal-managed input-otp state
- Signal
Managed Pagination Props - Props for the
SignalManagedPaginationcomponent. - Signal
Managed Pagination State - Signal-managed pagination state
- Skeleton
Avatar Props - Props for the
SkeletonAvatarcomponent. - Skeleton
Card Props - Props for the
SkeletonCardcomponent. - Skeleton
Props - Props for the
Skeletoncomponent. - Skeleton
Text Props - Props for the
SkeletonTextcomponent. - Slider
Context Value - Slider
Props - Props for the
Slidercomponent. - Slider
Root Props - Props for the
SliderRootcomponent. - Switch
Context Value - Switch
Label Props - Props for the
SwitchLabelcomponent. - Switch
Props - Props for the
Switchcomponent. - Switch
Root Props - Props for the
SwitchRootcomponent. - Switch
Thumb Props - Props for the
SwitchThumbcomponent. - Table
Props - Props for the
Tablecomponent. - Tabs
Content Props - Props for the
TabsContentcomponent. - Tabs
Context Value - Tabs
List Props - Props for the
TabsListcomponent. - Tabs
Props - Props for the
Tabscomponent. - Tabs
Trigger Child Props - Tabs
Trigger Props - Props for the
TabsTriggercomponent. - Textarea
Props - Props for the
Textareacomponent. - Toast
Props - Props for the
Toastcomponent. - Toggle
Props - Props for the
Togglecomponent. - Tooltip
Content Child Props - Tooltip
Content Class - Tooltip
Content Class Builder - Tooltip
Content Props - Props for the
TooltipContentcomponent. - Tooltip
Props - Props for the
Tooltipcomponent. - Tooltip
Provider Props - Props for the
TooltipProvidercomponent. - Tooltip
Trigger Child Props - Tooltip
Trigger Props - Props for the
TooltipTriggercomponent.
Enums§
- Accordion
Orientation - Accordion
Type - Alert
Variant - Alert variant types
- Badge
Variant - Badge variant types
- Button
Size - Button size types
- Button
Variant - Button variant types
- Progress
Variant - Skeleton
Size - Skeleton
Variant - Slider
Size - Slider
Variant - Switch
Size - Switch
Variant - Tooltip
Side - Tooltip
Variant
Constants§
- ALERT_
CLASS - ALERT_
DESCRIPTION_ CLASS - ALERT_
TITLE_ CLASS - BADGE_
CLASS - BUTTON_
CLASS - CARD_
CLASS - CARD_
CONTENT_ CLASS - CARD_
DESCRIPTION_ CLASS - CARD_
FOOTER_ CLASS - CARD_
HEADER_ CLASS - CARD_
TITLE_ CLASS - CHECKBOX_
CLASS - INPUT_
CLASS - INPUT_
ERROR_ CLASS - LABEL_
CLASS - PROGRESS_
CLASS - PROGRESS_
INDICATOR_ CLASS - SEPARATOR_
CLASS - SKELETON_
CLASS
Functions§
- Accordion
- Optional Props
- Accordion
Content - Optional Props
- Accordion
Item - Required Props
- Accordion
Trigger - Optional Props
- Alert
- Optional Props
- Alert
Description - Optional Props
- Alert
Title - Optional Props
- Badge
- Optional Props
- Breadcrumb
- Required Props
- Breadcrumb
Ellipsis - Optional Props
- Breadcrumb
Item - Required Props
- Breadcrumb
Link - Required Props
- Breadcrumb
List - Required Props
- Breadcrumb
Page - Required Props
- Breadcrumb
Separator - Optional Props
- Button
- Optional Props
- Calendar
- Optional Props
- Card
- Optional Props
- Card
Content - Optional Props
- Card
Description - Optional Props
- Card
Footer - Optional Props
- Card
Header - Optional Props
- Card
Title - Optional Props
- Checkbox
- Optional Props
- Combobox
- Default theme Combobox component
- Command
- Required Props
- Command
Empty - Required Props
- Command
Group - Required Props
- Command
Input - Optional Props
- Command
Item - Required Props
- Command
List - Required Props
- Command
Separator - Optional Props
- Command
Shortcut - Required Props
- Date
Picker - Optional Props
- Date
Picker With Range - Optional Props
- Dialog
- Optional Props
- Dialog
Close - Optional Props
- Dialog
Content - Optional Props
- Dialog
Description - Optional Props
- Dialog
Footer - Optional Props
- Dialog
Header - Optional Props
- Dialog
Title - Optional Props
- Dialog
Trigger - Optional Props
- Enhanced
Breadcrumb - Enhanced breadcrumb component with advanced signal management
- Enhanced
Calendar - Enhanced calendar component with advanced signal management
- Enhanced
Command - Enhanced command component with advanced signal management
- Enhanced
Date Picker - Enhanced date-picker component with advanced signal management
- Enhanced
Input Otp - Enhanced input-otp component with advanced signal management
- Enhanced
Pagination - Enhanced pagination component with advanced signal management
- Error
Boundary - Simple error boundary wrapper
- Error
Fallback - Simple error fallback component
- Form
- Default theme Form component
- Form
Control - Form control wrapper component
- Form
Description - Form description component
- Form
Field - Form field wrapper component
- Form
Item - Form item wrapper component
- Form
Label - Form label component
- Form
Message - Form message component for displaying validation errors
- Input
- Optional Props
- Input
Otp - Optional Props
- Label
- Optional Props
- Lazy
Component - Lazy component wrapper that loads components on demand
- Pagination
- Optional Props
- Pagination
Content - Required Props
- Pagination
Ellipsis - Optional Props
- Pagination
Item - Required Props
- Pagination
Link - Required Props
- Pagination
Next - Optional Props
- Pagination
Previous - Optional Props
- Popover
- Optional Props
- Progress
- Optional Props
- Progress
Indicator - Optional Props
- Progress
Label - Optional Props
- Progress
Root - Optional Props
- Radio
Group - Optional Props
- Radio
Group Item - Required Props
- Range
Slider - Optional Props
- Select
- Optional Props
- Select
Content - Optional Props
- Select
Group - Optional Props
- Select
Item - Required Props
- Select
Label - Optional Props
- Select
Separator - Optional Props
- Select
Trigger - Optional Props
- Select
Value - Optional Props
- Separator
- Optional Props
- Signal
Managed Breadcrumb - Signal-managed breadcrumb component
- Signal
Managed Calendar - Signal-managed calendar component
- Signal
Managed Command - Signal-managed command component
- Signal
Managed Date Picker - Signal-managed date-picker component
- Signal
Managed Input Otp - Signal-managed input-otp component
- Signal
Managed Pagination - Signal-managed pagination component
- Skeleton
- Optional Props
- Skeleton
Avatar - Optional Props
- Skeleton
Card - Optional Props
- Skeleton
Text - Optional Props
- Slider
- Optional Props
- Slider
Root - Optional Props
- Switch
- Optional Props
- Switch
Label - Optional Props
- Switch
Root - Optional Props
- Switch
Thumb - Optional Props
- Table
- Optional Props
- Tabs
- Optional Props
- Tabs
Content - Required Props
- Tabs
List - Optional Props
- Tabs
Trigger - Required Props
- Textarea
- Optional Props
- Toast
- Optional Props
- Toggle
- Optional Props
- Tooltip
- Optional Props
- Tooltip
Content - Optional Props
- Tooltip
Provider - Optional Props
- Tooltip
Trigger - Optional Props
- create_
user_ error - Utility function to create user-friendly error messages
- handle_
error - Utility function to handle errors gracefully
- use_
error_ handler - Hook for manual error handling
- use_
lazy_ component - Hook for lazy loading components
Type Aliases§
- Component
Loader - Component loader function type