Components ยท UI Primitives
Input
Gray field, purple caret & focus stroke, validation states.
Please enter a valid value
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | text | Native input type. |
value | string | โ | Controlled value. |
placeholder | string | โ | Placeholder text. |
invalid | boolean | false | Applies the error state. |
disabled | boolean | false | Disables the field. |
Reference API for the design concept — align names and types with your implementation.
Guidelines
- Use in the active theme; the component adapts to light and dark automatically.
- Keep the purple accent for interactive states only โ never as a fill or background.
- Copy the markup from the Code tab and wire it to
base.csstokens.