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 { ButtonGroup } from '@dryui/ui';
</script>

<ButtonGroup>Content</ButtonGroup>

Import options

Root package

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

Per-component subpath

ts
import { ButtonGroup } from '@dryui/ui/button-group'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Default

svelte
<ButtonGroup>
  <Button>Left</Button>
  <Button>Center</Button>
  <Button>Right</Button>
</ButtonGroup>

Vertical

svelte
<ButtonGroup orientation="vertical">
  <Button>Top</Button>
  <Button>Middle</Button>
  <Button>Bottom</Button>
</ButtonGroup>

Sizes

svelte
<ButtonGroup size="sm">
  <Button>Small</Button>
  <Button>Group</Button>
</ButtonGroup>
<ButtonGroup size="md">
  <Button>Medium</Button>
  <Button>Group</Button>
</ButtonGroup>
<ButtonGroup size="lg">
  <Button>Large</Button>
  <Button>Group</Button>
</ButtonGroup>

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Prop Type Default Required Bindable
orientation
horizontalvertical
'horizontal'
size
smmdlg
'md'
children
Snippet

Forwards <div> attributes via rest props. Common examples: id, style, role.