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
Add it to your project
One line copies DitherSelect and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSelect

Combobox

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
Add it to your project
One line copies DitherCombobox and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCombobox

Autocomplete

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
Add it to your project
One line copies DitherAutocomplete and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherAutocomplete

Wheel 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
Add it to your project
One line copies DitherWheelPicker and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherWheelPicker

Radio

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
Add it to your project
One line copies DitherRadioGroup and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherRadioGroup

Checkbox 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
Add it to your project
One line copies DitherCheckboxGroup and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCheckboxGroup

Toggle

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
Add it to your project
One line copies DitherToggle and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherToggle

Toggle 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
Add it to your project
One line copies DitherToggleGroup and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherToggleGroup