Input
A flexible text input component with support for labels, validation, and addons.
import { Input } from '@xdev-asia/x-ui-react';
Basic Usage
With Helper Text
Variants
Outline (Default)
API Reference
| Prop | Type | Default |
|---|
variant | 'outline' | 'filled' | 'flushed' | 'glass' | 'outline' |
size | 'sm' | 'md' | 'lg' | 'md' |
label | string | - |
placeholder | string | - |
isDisabled | boolean | false |
isReadOnly | boolean | false |
isInvalid | boolean | false |
errorMessage | string | - |
helperText | string | - |
leftIcon | ReactNode | - |
rightIcon | ReactNode | - |