Card
A bordered card.
selected gives it the accent border and background; activate handles click, Enter, and Space and makes the card a focusable button. Converts into NodeBuilder.
GUITUIRuns in the browser
cardPreview




Usage example
fn card_demo() -> CardBuilder { card(kv_grid([("Host", "wgpu"), ("Backend", "metal")])) }fn card_demo() -> CardBuilder { card(kv_grid([ ("Host", "wgpu"), ("Backend", "metal"), ]))}API
| Name | Signature | Purpose |
|---|---|---|
card | `fn card(child: impl IntoNode + 'static) -> CardBuilder`; `.selected(impl Reactive<bool>)`, `.activate(f)` | A bordered card. selected gives it the accent border and background; activate handles click, Enter, and Space and makes the card a focusable button. Converts into NodeBuilder. |