Documentation

  • 312 sections
  • Solid
  • Tailwind or StyleX

Input

A monospace text input on the token border stack: the border warms to the accent on focus, and invalid swaps it for the red seed with aria-invalid.

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

Textarea

The multiline companion to Input, with the same field context, invalid, read-only, focus, and disabled contracts. Resize behavior stays explicit.

modelValue
Typestring Default""
placeholder
Typestring Defaultnone
rows
Typenumber Default4
resize
Type"none" | "vertical" | "horizontal" | "both" Default"vertical"
disabled / readonly / invalid
Typeboolean Defaultfalse
class
Typestring Defaultnone
style
TypeJSX.CSSProperties Defaultnone
onUpdateModelValue
Type(value: string) => void Defaultnone
Add it to your project
One line copies DitherField, DitherTextarea 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 DitherTextarea

Field

Label, control, and one line of small print. The error replaces the description and drops a red pixel marker in front of the text.

label
Typestring Defaultnone
description
Typestring Defaultnone
error
Typestring Defaultnone
for
Typestring Defaultnone
children
Typecontent Defaultnone
Add it to your project
One line copies DitherField, 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 DitherField DitherInput

Fieldset

Groups related fields inside a bordered box with a tracking-spaced legend. Native <fieldset> semantics, kit skin.

legend
Typestring Defaultnone
children
Typecontent Defaultnone
Add it to your project
One line copies DitherField, DitherFieldset, 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 DitherField DitherFieldset DitherInput

Form

A deliberately tiny wrapper: novalidate suppresses the browser's validation bubbles and submit is prevented and handed on as a clean onSubmit call.

onSubmit
Type() => void Defaultnone
children
TypeJSX.Element Defaultnone
Add it to your project
One line copies DitherButton, DitherField, DitherForm, 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 DitherButton DitherField DitherForm DitherInput

Number field

Stepper buttons around a spinbutton input: arrow keys step, typed values clamp and snap to the step on blur, and the buttons disable at the bounds.

modelValue
Typenumber Defaultnone
onUpdateModelValue
Type(value: number) => void Defaultnone
min
Typenumber Defaultnone
max
Typenumber Defaultnone
step
Typenumber Default1
label
Typestring Defaultnone
disabled
Typeboolean Defaultfalse
Add it to your project
One line copies DitherNumberField 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 DitherNumberField

OTP field

One box per digit with auto-advancing focus. Backspace on an empty box steps back, and pasting a full code distributes it across the boxes. complete fires once every box is filled.

length
Typenumber Default6
modelValue
Typestring Default""
onUpdateModelValue
Type(value: string) => void Defaultnone
onComplete
Type(code: string) => void Defaultnone
Add it to your project
One line copies DitherOtpField 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 DitherOtpField