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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherPasswordInputSearchInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSearchInputEmailInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherEmailInputPhoneInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherPhoneInputCurrencyInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCurrencyInputScrubInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherScrubInputHotkeyInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherHotkeyInputCodeInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCodeInputInputGroup
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).
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherInputGroup DitherInputInlineEdit
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherInlineEditTagInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTagInputChoiceChips
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherChoiceChipsCheckboxCard
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCheckboxCardKeyValueInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherKeyValueInputMentionInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherMentionInputFileInput
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherFileInputListBox
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherListBoxMultiSelect
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherMultiSelectCascadeSelect
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCascadeSelectTransferList
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTransferListLanguageSelect
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherLanguageSelectIconPicker
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherIconPickerFontPicker
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherFontPickerCalendar
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCalendarDatePicker
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherDatePickerMonthPicker
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherMonthPickerColorSwatch
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherColorSwatchColorPicker
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherColorPickerKnob
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherKnobSignaturePad
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSignaturePad