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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherInputTextarea
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherTextareaField
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherInputFieldset
Groups related fields inside a bordered box with a tracking-spaced legend. Native <fieldset> semantics, kit skin.
- legend
- Typestring Defaultnone
- children
- Typecontent Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherField DitherFieldset DitherInputForm
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherButton DitherField DitherForm DitherInputNumber 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherNumberFieldOTP 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherOtpField