Interactive demo — tweak the ControlBar props below
Composition — Selector, Slider, Input, SearchField, Switch, Button
ControlBar with header — color dots via Button
Svelte
<!-- ControlBar is a generic container. Drop any control inside. -->
<ControlBar palette="tone">
<Selector label="Layout" options={["grid", "list", "tile"]} bind:value={layout} />
<Selector label="Columns" options={[2, 3, 4]} bind:value={cols} />
</ControlBar> | Prop | Type | Default |
|---|---|---|
| leading | Snippet | — |
| children | Snippet | — |
| palette | "accent" | "tone" | "accentbg" | "tone" |
| rounded | boolean | false |
| bordered | boolean | true |
Prop leading
Type
SnippetDefault
—Prop children
Type
SnippetDefault
—Prop palette
Type
"accent" | "tone" | "accentbg"Default
"tone"Prop rounded
Type
booleanDefault
falseProp bordered
Type
booleanDefault
true