stratum-core
Purpose
Foundation crate providing the core traits, types, and utilities that all other NexusStratum crates depend on.
Position in Pipeline
stratum-core
|
+----------+---------+----------+---------+----------+
| | | | | |
stratum-a11y theme css tailwind icons security
| | | | |
primitives components css tailwind icons
| | | |
components leptos/dioxus components leptos/dioxus
No dependencies on other stratum crates. Used by every other crate in the workspace.
Key Public API
| Item | Description |
|---|---|
Component trait |
Base trait all components implement |
Props trait |
Trait for component property structs |
ComponentEvent |
Unified event type for component interactions |
AriaAttributes |
Struct for WAI-ARIA attribute management |
AriaRole |
Enum of ARIA roles |
FocusManager |
Utility for managing focus state across components |
IdGenerator |
Deterministic unique ID generation for SSR compatibility |
RenderOutput |
Framework-agnostic render output type |
Usage Example
use ;
;
How to Run Tests