Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Select
A listbox behind an input-like trigger: Enter, Space or ArrowDown opens the panel, arrows move the highlight, and the picked row carries a small dithered swatch. Escape or an outside click closes it.
- options
- TypeOption[] Defaultnone
- modelValue
- Typestring Defaultnone
- onUpdateModelValue
- Type(value: string) => void Defaultnone
- placeholder
- Typestring Default"Select…"
- color
- TypePixelColor Default"blue"
- disabled / invalid
- Typeboolean Defaultfalse
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSelectCombobox
A select whose trigger is an input: typing filters the options (case-insensitive), Enter picks the highlighted match, and blur snaps the text back to the last valid value.
- options
- TypeOption[] Defaultnone
- modelValue
- Typestring Defaultnone
- onUpdateModelValue
- Type(value: string) => void Defaultnone
- placeholder
- Typestring Default"Select…"
- color
- TypePixelColor Default"blue"
- disabled
- Typeboolean Defaultfalse
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherComboboxAutocomplete
A free-text input with suggestions: anything you type is the value; picking a row just fills the input. Try dither, bayer or pixel.
- suggestions
- Typestring[] Defaultnone
- modelValue
- Typestring Defaultnone
- placeholder
- Typestring Default"Search…"
- disabled
- Typeboolean Defaultfalse
- class
- Typestring Defaultnone
- onUpdateModelValue
- Type(value: string) => void Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherAutocompleteWheel picker
An iOS-style picker wheel: a 3D drum on native momentum scroll that snaps to the nearest notch, steered by wheel, drag or spinbutton keys. Wheels compose side by side for date and time pickers; reduced motion flattens the drum.
- options
- Type(string | { value, label })[] Defaultnone
- modelValue
- Typestring (with onUpdateModelValue) Defaultnone
- rows
- Typenumber: visible rows (odd) Default5
- label
- Typestring: accessible name Default"Wheel picker"
- color
- TypePixelColor: selected notch tint Default"blue"
- class
- Typestring Defaultnone
- onUpdateModelValue
- Type(value: string) => void Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherWheelPickerRadio
A radiogroup of pixel circles: unchecked rings are a 1px pixel border, the checked one fills its inner dot with the Bayer texture. Arrow keys move and select (roving tabindex).
- options
- TypeOption[] Defaultnone
- modelValue
- Typestring Defaultnone
- onUpdateModelValue
- Type(value: string) => void Defaultnone
- color
- TypePixelColor Default"blue"
- label
- Typestring Defaultnone
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherRadioGroupCheckbox group
A labelled group of DitherCheckboxes bound to one string array: toggling a box adds or removes its option's value.
- options
- TypeOption[] Defaultnone
- modelValue
- Typestring[] Defaultnone
- onUpdateModelValue
- Type(value: string[]) => void Defaultnone
- color
- TypePixelColor Default"blue"
- label
- Typestring Defaultnone
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCheckboxGroupToggle
A pressed-state button: off is a quiet border, on fills behind the label with the badge's dithered gradient. Label goes in as children.
- modelValue
- Typeboolean Defaultnone
- onUpdateModelValue
- Type(value: boolean) => void Defaultnone
- color
- TypePixelColor Default"blue"
- seed
- Typenumber Defaultnone
- disabled
- Typeboolean Defaultfalse
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherToggleToggle group
A bordered row of toggles: single behaves like a radio group (one value, arrows move), while multiple keeps each button independently pressed against a string array.
- options
- TypeOption[] Defaultnone
- modelValue
- Typestring | string[] Defaultnone
- onUpdateModelValue
- Type(value: string | string[]) => void Defaultnone
- type
- Type"single" | "multiple" Default"single"
- color
- TypePixelColor Default"blue"
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherToggleGroup