v2.0.0

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

<OptionPicker.Root>
  <OptionPicker.Item>...</OptionPicker.Item>
  <OptionPicker.Preview>...</OptionPicker.Preview>
  <OptionPicker.Label>...</OptionPicker.Label>
  <OptionPicker.Description>...</OptionPicker.Description>
  <OptionPicker.Meta>...</OptionPicker.Meta>
</OptionPicker.Root>

Import options

Root package

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

Per-component subpath

ts
import { OptionPicker } from '@dryui/ui/option-picker'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable

OptionPicker.Root

columns
1234

OptionPicker.Item

layout
inlinestacked
'inline'
size
defaultcompactvisual
Size preset affecting density, spacing, or typography. 'default'
unavailable
boolean
false

OptionPicker.Preview

color
string
Semantic color or tone applied to the component.
shape
circleroundedsquarepill
'rounded'
variant
defaultpresetfontshape
Visual style preset for the component. 'default'
children
Snippet
Content rendered inside the component.

OptionPicker.Label

OptionPicker.Description

OptionPicker.Meta