Input
40px tall, 12px side padding, Roboto / text-base. The border moves to Colors/input/border-focus on focus.
Figma: 10 / Components / InputUsage
Source: src/components/ui/input.tsx
import { Input, InputGroupSearch } from '@/components/ui/input'<Input placeholder='Page name' />InputGroup/Search
An input with a leading 20px search icon, used above lists and tables.
States
Default, filled, invalid and disabled.
When to use
When to reach for it, and when to use something else.
Use it for
Complete: Short single-line answers: names, links, amounts.
Complete: Always with a visible label through Field.
Avoid
Not complete: Placeholder text as the only label.
Not complete: Long answers; use a Textarea.
Input
| Prop | Type | Default | Description |
|---|---|---|---|
| type | string | 'text' | Native input type. |
| aria-invalid | boolean | – | Shows the error border. |
InputGroupSearch
| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | string | 'Search' | Also used as the accessible name. |
| containerClassName | string | – | Classes for the wrapper, such as a max width. |