Theme

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.

svelte
<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

ts
import { Toolbar } from '@dryui/ui'

Per-component subpath

ts
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 with disabled buttons

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
Toolbar.Root Toolbar.ButtonToolbar.SeparatorToolbar.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.ButtonToolbar.SeparatorToolbar.Link

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.