Navigation
Contextual
Static (no onclick)
train
TGV (tone)
Paris β Lyon
airplanemode_active
Concorde (highlight)
Paris β New York
rocket
Ariane (accent)
Kourou β Mir space station
Svelte
<ListItem
label="TGV"
leading={icon_train}
palette="tone"
rounded
active={active === "tgv"}
onclick={() => active = "tgv"}
>
Paris β Lyon
</ListItem>
<ListItem
label="Minitel"
leading={icon_terminal}
palette="highlight"
rounded
active={active === "minitel"}
onclick={() => active = "minitel"}
>
3615 COGIP
</ListItem> | Prop | Type | Default |
|---|---|---|
| size | "sm" | "md" | "lg" | "md" |
| palette | "tone" | "accent" | "ghost" | "neutral" | "error" | "warning" | "success" | "info" | "tone" |
| elevation | "none" | "subtle" | "hard" | "none" |
| rounded | boolean | false |
| active | boolean | false |
| label | string | β |
| leading | Snippet | β |
| trailing | Snippet | β |
| children | Snippet | β |
| onclick | () => void | β |
Prop size
Type
"sm" | "md" | "lg"Default
"md"Prop palette
Type
"tone" | "accent" | "ghost" | "neutral" | "error" | "warning" | "success" | "info"Default
"tone"Prop elevation
Type
"none" | "subtle" | "hard"Default
"none"Prop rounded
Type
booleanDefault
falseProp active
Type
booleanDefault
falseProp label
Type
stringDefault
βProp leading
Type
SnippetDefault
βProp trailing
Type
SnippetDefault
βProp children
Type
SnippetDefault
βProp onclick
Type
() => voidDefault
β