Input
Input
Input
Textarea
Select
import { Input, Textarea, Select } from "@f0rbit/ui";Basic text input for single-line content:
<Input placeholder="Enter your name..." />Error State
Section titled “Error State”<Input placeholder="Invalid input" error />Disabled
Section titled “Disabled”<Input placeholder="Disabled" disabled />Password
Section titled “Password”<Input type="password" placeholder="Password" />Textarea
Section titled “Textarea”Multi-line text input for longer content:
<Textarea placeholder="Enter your message..." />With Error
Section titled “With Error”<Textarea placeholder="Invalid content" error />Select
Section titled “Select”Dropdown for selecting from predefined options:
<Select> <option value="">Select an option</option> <option value="1">Option 1</option> <option value="2">Option 2</option> <option value="3">Option 3</option></Select>With Error
Section titled “With Error”<Select error> <option value="">Selection required</option> <option value="1">Option 1</option></Select>| Prop | Type | Default | Description |
|---|---|---|---|
error | boolean | false | Show error styling |
disabled | boolean | false | Disable the input |
placeholder | string | — | Placeholder text |
Textarea
Section titled “Textarea”| Prop | Type | Default | Description |
|---|---|---|---|
error | boolean | false | Show error styling |
disabled | boolean | false | Disable the textarea |
placeholder | string | — | Placeholder text |
Select
Section titled “Select”| Prop | Type | Default | Description |
|---|---|---|---|
error | boolean | false | Show error styling |
disabled | boolean | false | Disable the select |