Input

Retrieve text input from a user.

Import

import { Input } from 'raw-ui';

Types

Sizes

Width

Disabled

Read only

Default value

Controlled

Inside element

Addon

Password

Clearable

API

PropDescriptionTypeDefault
typeinput type'default' | 'primary' | 'warning' | 'error''default'
sizeinput size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'
placeholderinput placeholderstring-
widthinput widthstring'md'
disableddisable inputbooleanfalse
readOnlyread only inputbooleanfalse
defaultValuedefault value (uncontrolled)string''
valueinput value (controlled)string-
onChangechange event handler(event: React.ChangeEvent<HTMLInputElement>) => void-
...native propsReact.InputHTMLAttributes-