Sigil

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 browsercard

Preview

Card, Default, light themeCard, Default, dark theme

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

NameSignaturePurpose
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.