| Crates.io | radix-leptos-primitives |
| lib.rs | radix-leptos-primitives |
| version | 0.9.0 |
| created_at | 2025-08-31 08:13:49.319404+00 |
| updated_at | 2025-09-22 02:57:42.887546+00 |
| description | Primitive components for Radix-Leptos |
| homepage | https://radix-leptos.dev |
| repository | https://github.com/cloud-shuttle/radix-leptos |
| max_upload_size | |
| id | 1818295 |
| size | 1,537,859 |
Primitive UI components for Leptos, built with accessibility and performance in mind.
This crate provides a comprehensive set of accessible, unstyled UI primitives that serve as the foundation for building modern web applications with Leptos. Each component is designed to be:
use radix_leptos_primitives::*;
// Basic button
let view = view! { cx,
<Button variant=ButtonVariant::Primary>
"Click me"
</Button>
};
// Dialog with state management
let (is_open, set_is_open) = create_signal(cx, false);
let view = view! { cx,
<Dialog _open=is_open onopen_change=Callback::new(move |open| set_is_open.set(open))>
<DialogContent>
<DialogHeader>
<DialogTitle>"Confirm Action"</DialogTitle>
<DialogDescription>"Are you sure you want to proceed?"</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>
};
All components support theming through CSS custom properties and can be styled to match your design system:
use radix_leptos_primitives::theming::*;
// Apply theme
let view = view! { cx,
<ThemeProvider theme=light_theme>
<Button>"Themed Button"</Button>
</ThemeProvider>
};
Every component is built with accessibility in mind:
The crate includes comprehensive tests:
Run tests with:
cargo test
For complete API documentation, visit docs.rs/radix-leptos-primitives.
MIT License - see LICENSE for details.