Documentation

  • 312 sections
  • Solid
  • Tailwind or StyleX

PasswordInput

Password field with a reveal toggle: the type flips text/password, the button carries its own accessible name and never submits (type="button").

modelValue
Typestring (with onUpdateModelValue) Default""
placeholder
Typestring Defaultnone
disabled
Typeboolean Defaultnone
invalid
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherField, DitherPasswordInput 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 DitherField DitherPasswordInput

SearchInput

Leading glyph, one-click clear (only when there is something to clear) and Escape empties the field. Either way it fires a clear event so results can reset in the same beat.

modelValue
Typestring (with onUpdateModelValue) Default""
placeholder
Typestring Defaultnone
disabled
Typeboolean Defaultnone
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onClear
Type() on clear/Escape Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
invalid
Typeboolean Defaultfalse
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherSearchInput 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 DitherSearchInput

EmailInput

The three things a bare text input gets wrong, fixed in one place: type=email, inputmode=email, autocomplete=email.

modelValue
Typestring (with onUpdateModelValue) Default""
placeholder
Typestring Default"you@example.com"
autocomplete
Typestring Default"email"
disabled
Typeboolean Defaultnone
invalid
Typeboolean Defaultnone
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherEmailInput 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 DitherEmailInput

PhoneInput

Digits normalized into the (415) 555-2671 shape while you type (10-digit NANP), tel keyboard on mobile. The model is always the formatted string; the caret is end-anchored by design.

modelValue
Typestring (with onUpdateModelValue, formatted) Default""
placeholder
Typestring Default"(555) 123-4567"
autocomplete
Typestring Default"tel"
disabled
Typeboolean Defaultnone
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
invalid
Typeboolean Defaultfalse
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherPhoneInput 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 DitherPhoneInput

CurrencyInput

Money entry with predictable mechanics: the model stays a plain decimal string ("1234.56"), the display groups thousands while blurred and shows raw digits while focused so typing and the caret stay sane. Digits and one dot only.

modelValue
Typestring (with onUpdateModelValue, digits[.digits]) Default""
placeholder
Typestring Default"0.00"
prefix
Typestring Default"$"
locale
Typestring Default"en-US"
disabled
Typeboolean Defaultnone
invalid
Typeboolean Defaultnone
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherCurrencyInput 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 DitherCurrencyInput

ScrubInput

The Figma-style drag gesture on a number: the grip is a real role="slider" (arrow keys, PageUp/Down and Home/End work without a pointer), and the read-only input stays selectable for copying. Values snap to step.

modelValue
Typenumber (with onUpdateModelValue) Default0
min / max / step
Typenumber Default0 / 100 / 1
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: number) => void Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
placeholder
Typestring Defaultnone
invalid
Typeboolean Defaultfalse
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherField, DitherScrubInput 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 DitherField DitherScrubInput

HotkeyInput

Shortcut capture: modifiers hold until a non-modifier key arrives, repeat is ignored, Escape clears, Tab moves on as anywhere. Value shape: Ctrl+Shift+K (order Ctrl, Alt, Shift, Meta, then the key).

modelValue
Typestring (with onUpdateModelValue) Default""
placeholder
Typestring Default"Press a shortcut…"
disabled
Typeboolean Defaultnone
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
type
Typestring Default"text"
style
TypeJSX.CSSProperties Defaultnone
invalid
Typeboolean Defaultfalse
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherField, DitherHotkeyInput 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 DitherField DitherHotkeyInput

CodeInput

Code entry where Tab indents (two spaces), Shift+Tab dedents the selected lines, and Ctrl/Cmd+Enter fires submit. The browser's tab trap is handled once, here: Escape lets go, and the Tab after it moves on.

modelValue
Typestring (with onUpdateModelValue) Default""
placeholder
Typestring Default"// paste or type…"
rows
Typenumber Default6
disabled
Typeboolean Defaultnone
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onSubmit
TypeCtrl/Cmd + Enter Defaultnone
style
TypeJSX.CSSProperties Defaultnone
invalid
Typeboolean Defaultfalse
resize
Type"none" | "vertical" | "horizontal" | "both" Default"vertical"
readonly
Typeboolean Defaultfalse
Add it to your project
One line copies DitherCodeInput 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 DitherCodeInput

InputGroup

Addon props around a control in one bordered group: the group owns the border and the focus-within ring, the inner control drops its own chrome (the code tab shows the exact class set).

Add it to your project
One line copies DitherInputGroup, DitherInput 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 DitherInputGroup DitherInput

InlineEdit

Click-to-edit text: view mode is a real button (keyboard reachable), edit mode focus-selects. Enter or blur commits (only when the value actually changed). Escape reverts.

modelValue
Typestring (with onUpdateModelValue) Default""
placeholder
Typestring Default"—"
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onSave / onCancel
Type(value) / () Defaultnone
Add it to your project
One line copies DitherField, DitherInlineEdit 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 DitherField DitherInlineEdit

TagInput

Tags as chips in one field: Enter or comma commits, Backspace on an empty input pulls the last chip back in, per-chip × removes. Trimmed, case-deduped, max-capped.

modelValue
Typestring[] (with onUpdateModelValue) Default[]
placeholder
Typestring Default"Add tag…"
max
Typenumber DefaultInfinity
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string[]) => void Defaultnone
Add it to your project
One line copies DitherTagInput 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 DitherTagInput

ChoiceChips

Chip-style choice group where the chip IS the label of a real radio (or checkbox when multiple). Native keyboard semantics and focus come for free: no roving tabindex to get wrong.

label
Typestring (names the group, shown over the chips) Default""
options
Typestring[] Default[]
modelValue
Typestring | string[] (with onUpdateModelValue; `value` still read) Default"" / []
value
Typestring | string[] Defaultnone
multiple
Typeboolean (checkbox mode) Defaultfalse
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string | string[]) => void Defaultnone
Add it to your project
One line copies DitherChoiceChips 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 DitherChoiceChips

CheckboxCard

The whole card is the checkbox's label: title and description ride along, one click anywhere toggles, the focus ring shows keyboard focus. The checkbox stays the source of truth.

modelValue
Typeboolean (with onUpdateModelValue) Defaultfalse
label / description
Typestring Default""
onUpdateModelValue
Type(value: boolean) => void Defaultnone
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
children
Typecontent Defaultnone
Add it to your project
One line copies DitherCheckboxCard 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 DitherCheckboxCard

KeyValueInput

Repeatable key/value rows: headers, metadata, query params. Every edit hands back the whole array (the parent owns the truth), rows are added and removed from the bottom.

modelValue
Type{ key, value }[] (with onUpdateModelValue) Default[]
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: KeyValueRow[]) => void Defaultnone
Add it to your project
One line copies DitherKeyValueInput 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 DitherKeyValueInput

MentionInput

Textarea with @-mention autocomplete: detection is a regex on the text before the caret, the list anchors to the field, Arrow keys pick, Enter/Tab inserts, Escape closes. The caret lands after the inserted handle.

modelValue
Typestring (with onUpdateModelValue) Default""
options
Typestring[] Default[]
placeholder
Typestring Default"Write… use @ to mention"
rows
Typenumber Default3
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onMention
Type(handle) on insert Defaultnone
Add it to your project
One line copies DitherMentionInput 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 DitherMentionInput

FileInput

File picker with a visible selection: a hidden native input driven by its label (keyboard-reachable), files listed with sizes, per-file remove, clear-all, and drop-zone drag styling. The model is File[], owned by the parent.

modelValue
TypeFile[] (with onUpdateModelValue) Default[]
multiple
Typeboolean Defaultfalse
accept
Typestring (input accept) Defaultnone
disabled
Typeboolean Defaultfalse
buttonLabel
Typestring Default"Choose files"
class
Typestring Defaultnone
onUpdateModelValue
Type(value: File[]) => void Defaultnone
onChange
Type(File[]) after pick/remove Defaultnone
Add it to your project
One line copies DitherFileInput 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 DitherFileInput

ListBox

Single-select with the full WAI-ARIA keyboard contract: arrows move the active option, Home/End jump, Enter/Space selects, and the active row carries aria-activedescendant so focus never leaves the listbox itself.

options
Typestring[] Default[]
value
Typestring (with onUpdateModelValue) Default""
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onSelect
Type(value) on commit Defaultnone
aria-label
Typestring Defaultnone
aria-labelledby
Typestring Defaultnone
Add it to your project
One line copies DitherListBox 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 DitherListBox

MultiSelect

Chips for what's picked, native checkboxes for what's pickable, a filter box over the pool. Keyboard semantics come from the checkboxes, and the selected set stays visible and individually removable.

options
Typestring[] Default[]
value
Typestring[] (with onUpdateModelValue) Default[]
placeholder
Typestring Default"Search…"
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string[]) => void Defaultnone
onSearch
Type(query) as you type Defaultnone
Add it to your project
One line copies DitherMultiSelect 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 DitherMultiSelect

CascadeSelect

Dependent pickers: each level's options come from the tree under the current path, and changing a parent truncates the deeper segments (the classic cascade rule, in one component). The model is the chosen path.

tree
Type{ value, children? }[] Default[]
value
Typestring[] path (with onUpdateModelValue) Default[]
placeholders
Typestring[] per level DefaultLevel n
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string[]) => void Defaultnone
Add it to your project
One line copies DitherCascadeSelect 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 DitherCascadeSelect

TransferList

Two-panel shuttle: the source pool stays put, the destination IS the model. Checkboxes select in either direction, Add/Remove move the selection, Add all/Remove all flush. Every control is a real button.

source
Typestring[] (pool) Default[]
value
Typestring[] (destination) Default[]
onUpdateModelValue
Type(value: string[]) => void Defaultnone
disabled
Typeboolean Defaultfalse
sourceLabel / targetLabel
Typestring DefaultAvailable / Selected
class
Typestring Defaultnone
Add it to your project
One line copies DitherTransferList 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 DitherTransferList

LanguageSelect

Language picker over a curated BCP 47 list: the label is the human name, the value is the tag, and includeDefault keeps the opt-out one option away.

modelValue
Typestring (BCP 47 tag) Default"en"
includeDefault
Typeboolean (first entry) Defaultfalse
defaultLabel
Typestring Default"System default"
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
Add it to your project
One line copies DitherLanguageSelect 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 DitherLanguageSelect

IconPicker

The kit's own glyphs behind a name filter: a radio grid, so arrow keys roam the whole grid as one tab stop. Value = the icon name, ready for <DitherIcon>.

modelValue
Typestring (icon name) Default""
size
Typenumber (px) Default16
placeholder
Typestring (filter) Default"Filter icons…"
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
Add it to your project
One line copies DitherIconPicker 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 DitherIconPicker

FontPicker

Each option renders its own name in its own family. The preview IS the choice, so no swatch can drift from the value. Value = the CSS font stack string.

modelValue
Typestring (CSS font stack) Default""
onUpdateModelValue
Type(value: string) => void Defaultnone
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
Add it to your project
One line copies DitherFontPicker 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 DitherFontPicker

Calendar

Month grid with real grid semantics: arrows move the day, PageUp/PageDown change month, Home/End jump to week edges, and the model is ISO YYYY-MM-DD so timezone math never enters the picture. Today gets a ring, the selected day the fill.

modelValue
Typestring (ISO date, with onUpdateModelValue) Default""
min / max
Typestring (ISO) Defaultnone
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onSelect
Type(value: string) => void Defaultnone
Add it to your project
One line copies DitherCalendar 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 DitherCalendar

DatePicker

Date field + calendar popover: the input shows a human format, the calendar opens on a click or Enter with its day focused, select closes, Escape and outside-click dismiss, a pick or Escape hands focus back to the field. The model stays ISO.

modelValue
Typestring (ISO, with onUpdateModelValue) Default""
placeholder
Typestring Default"YYYY-MM-DD"
min / max
Typestring (ISO) Defaultnone
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onSelect
Type(ISO) when picked Defaultnone
Add it to your project
One line copies DitherDatePicker 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 DitherDatePicker

MonthPicker

Year + twelve-month grid: model is YYYY-MM, arrows roam the grid (three columns), PageUp/PageDown shift the year, the current month keeps a ring.

modelValue
Typestring (YYYY-MM, with onUpdateModelValue) Default""
onUpdateModelValue
Type(value: string) => void Defaultnone
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
Add it to your project
One line copies DitherMonthPicker 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 DitherMonthPicker

ColorSwatch

One color as a pickable chip: a real button with the color in its accessible name, a selected ring, a keyboard focus ring. Reads as pure display when nothing listens to select.

color
Typestring (css color) Default"#5227FF"
label
Typestring (aria name) Defaultthe color
selected
Typeboolean (ring) Defaultfalse
size
Typenumber (px) Default24
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onSelect
Type(color: string) => void Defaultnone
Add it to your project
One line copies DitherColorSwatch 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 DitherColorSwatch

ColorPicker

HSV field + hue strip + hex readout: the plane is pointer-driven (arrows nudge S/V, Shift for coarse), the hue strip is a slider of its own, and the hex input accepts what you type. Model = hex string.

modelValue
Typestring (hex, with onUpdateModelValue) Default"#5227FF"
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
Add it to your project
One line copies DitherColorPicker 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 DitherColorPicker

Knob

Rotary control with the reliable gesture: drag VERTICALLY to change the value (angle-following wraps badly at the detent), arrows / PageUp-Down / Home-End on the keyboard, full slider semantics. The indicator sweeps 270°.

modelValue
Typenumber (with onUpdateModelValue) Default50
onUpdateModelValue
Type(value: number) => void Defaultnone
min / max / step
Typenumber Default0 / 100 / 1
size
Typenumber (px) Default72
disabled
Typeboolean Defaultfalse
label
Typestring (its accessible name) Default"Knob"
class
Typestring Defaultnone
Add it to your project
One line copies DitherKnob 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 DitherKnob

SignaturePad

Pointer drawing on a canvas. The change event fires the dataURL after every stroke and on clear. A context-less environment refuses strokes instead of throwing, so degraded engines degrade visibly.

width / height
Typenumber (canvas) Default420 / 160
placeholder
Typestring Default"Sign here"
disabled
Typeboolean Defaultfalse
class
Typestring Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
onChange
Type(dataURL) per stroke Defaultnone
Add it to your project
One line copies DitherSignaturePad 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 DitherSignaturePad