Input

A flexible text input component with support for labels, validation, and addons.

tsx
import { Input } from '@xdev-asia/x-ui-react';

Basic Usage

Default Input

With Label

With Helper Text

This will be your public display name

Variants

Outline (Default)

Filled

Flushed

Glass

Sizes

Size Variants

States

Disabled

Read Only

Error State

Please enter a valid email

API Reference

PropTypeDefault
variant'outline' | 'filled' | 'flushed' | 'glass''outline'
size'sm' | 'md' | 'lg''md'
labelstring-
placeholderstring-
isDisabledbooleanfalse
isReadOnlybooleanfalse
isInvalidbooleanfalse
errorMessagestring-
helperTextstring-
leftIconReactNode-
rightIconReactNode-