Input
The Input component is used to take input.
1. Import
KUMUI exports 1 Input-related components:
import { Input } from "@rohitgadekar/kimui";
2. Usage
3. API
3.1 Input
| Attribute | Type | Description | Default |
|---|---|---|---|
| type | string | Defines the input type (e.g., text, password, email) | text |
| placeholder | string | Text displayed as a hint for the input field | - |
| isDisabled | boolean | Disables the input field | false |
| isInvalid | boolean | Marks the input as invalid (usually for validation) | false |
| startContent | React.ReactNode | Content displayed at the start of the input (e.g., an icon) | - |
| endContent | React.ReactNode | Content displayed at the end of the input (e.g., a button or icon) | - |