Installation
This component is primitive-agnostic — same source under both flavors.
Basic
Inspect
We only use it to send your ticket.
Invalid
Inspect
Enter a valid email address.
The red hairline lasts until the field receives focus. Focus then wins with a neutral border, so the value being fixed is not still marked as wrong.
Number
Inspect
Native spinner arrows are removed. The inset minus/plus buttons step the value and stay out of the tab order, so arrow keys still own the focused field.
File
Inspect
Sizes
Inspect
Disabled
Inspect
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default" | "compact" | from SizeProvider | Pins the field to one step of the size ladder; omitting it follows the provider. |
| type | string | "text" | Any native type. "number" replaces the browser spinners with minus/plus buttons; "file" shows a file glyph and muted text until a file is chosen. |
| aria-invalid | boolean | — | Tints the hairline red until the field receives focus. |
| disabled | boolean | false | Dims the field and removes pointer interaction. |
| ...props | InputHTMLAttributes | — | Every native input attribute: value, placeholder, min, max, step, onChange, etc. |