Input
Text input with optional label and unit suffix. Extends native input attributes.
Preview
Usage
import { Input } from '@ramtt/ui'
<Input placeholder="Enter value" />
<Input label="FTP" unit="W" type="number" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Field label above the input |
| unit | string | — | Unit suffix displayed inside the input |
| placeholder | string | — | Placeholder text |
| type | string | 'text' | Input type |
| className | string | — | Additional Tailwind classes |