Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
canonrs-client
WASM and hydration layer of the CanonRS design system.
Only compiled when targeting wasm32 or using the hydrate feature. Never included in SSR builds.
Responsibility
Provides interactive components, browser behaviors, and client-side theme management. All code in this crate assumes it runs in a browser environment.
Modules
behaviors/
Browser-native behavior implementations for all interactive components. Each behavior file wires a component's DOM interactions using web-sys.
Examples:
accordion_behavior— expand/collapse with keyboard supportdrag_drop_behavior— drag and drop primitivessidebar_behavior— responsive sidebar togglevirtual_list_behavior/— windowed list renderingtheme_toggle_behavior— client-side theme switching
The auto_init.rs and behavior_registry.rs handle automatic behavior registration on hydration. Called via canonrs::behaviors::init_canonrs_behaviors() in the hydrate entry point.
ui/
Interactive UI component implementations that require browser APIs:
avatar— image loading with fallbackbutton— interactive button with ripple/statecalendar/— date picker with keyboard navigationcommand/— command palettedata_table/— sortable, filterable data tablesidebar/— responsive sidebartoast/— notification toasts
themes/
Client-side theme engine:
engine— applies theme tokens to CSS variables at runtimeregistry— theme registry for dynamic theme switching
Features
| Feature | Effect |
|---|---|
hydrate |
Activates Leptos hydration mode |
Target Restriction
behaviors/ is only compiled on wasm32: