Toolbar
Horizontal button group for actions
Start Here
Start from the smallest working snippet, then move to interactive examples and the full API contract below.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Toolbar } from '@dryui/ui';
</script>
<Toolbar.Root>
<Toolbar.Button>...</Toolbar.Button>
<Toolbar.Separator>...</Toolbar.Separator>
<Toolbar.Link>...</Toolbar.Link>
</Toolbar.Root>Import options
Root package
import { Toolbar } from '@dryui/ui'Per-component subpath
import { Toolbar } from '@dryui/ui/toolbar'Customize
Use the interactive examples to see common variants, states, and composition patterns before building your own.
Toolbar with buttons and separator
<Toolbar.Root>
<Toolbar.Button>Bold</Toolbar.Button>
<Toolbar.Button>Italic</Toolbar.Button>
<Toolbar.Button>Underline</Toolbar.Button>
<Toolbar.Separator />
<Toolbar.Button>Align Left</Toolbar.Button>
<Toolbar.Button>Align Center</Toolbar.Button>
<Toolbar.Button>Align Right</Toolbar.Button>
<Toolbar.Separator />
<Toolbar.Link href="#">Help</Toolbar.Link>
</Toolbar.Root>Toolbar with disabled buttons
<Toolbar.Root>
<Toolbar.Button>Cut</Toolbar.Button>
<Toolbar.Button>Copy</Toolbar.Button>
<Toolbar.Button disabled>Paste</Toolbar.Button>
<Toolbar.Separator />
<Toolbar.Button>Undo</Toolbar.Button>
<Toolbar.Button disabled>Redo</Toolbar.Button>
</Toolbar.Root>Structure
Compound components always start with Toolbar.Root. Use this structure block to understand required wrappers before you wire state or styling.
Toolbar.Root Toolbar.Button Toolbar.Separator Toolbar.Link
Compose
The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.
Compound component. Start with Toolbar.Root, then add only the parts you need.
Toolbar.Root
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
orientation | horizontalvertical | — | — | — |
children | Snippet | — | ✓ | — |
Forwards <div> attributes via rest props. Common examples: id, style, role.
Toolbar.Button
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
disabled | boolean | — | — | — |
children | Snippet | — | ✓ | — |
Forwards <button> attributes via rest props. Common examples: type, disabled, name.
Toolbar.Separator
| Prop | Type | Default | Required | Bindable |
|---|
Forwards <div> attributes via rest props. Common examples: id, style, role.
Toolbar.Link
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
href | string | — | ✓ | — |
children | Snippet | — | ✓ | — |
Forwards <a> attributes via rest props. Common examples: href, target, rel.