UI Siêu Ngon

Input

Text input and textarea component with label, error/hint messages, icons, and size presets.

Playground
label
placeholder
size
disabled
Error msg
Hint text
rounded
<Input
  label="Email"
  placeholder="you@example.com"
/>

Basic

Simple input with placeholder.

With Label

Add a label and required indicator.

Error and Hint

error replaces hint when both are provided.

Username is already taken
At least 8 characters

With Icons

leftIcon and rightIcon for prefix/suffix icons.

Sizes

Textarea

Set multiline to render a textarea.

Disabled

API

PropertyTypeDefaultDescription
labelstringLabel rendered above the input
requiredbooleanfalseAdd a * indicator next to the label
errorstringError message shown below the input (replaces hint)
hintstringHelper text shown below the input
size"sm" | "md" | "lg""md"Size preset
leftIconReactNodeIcon or element in the left slot
rightIconReactNodeIcon or element in the right slot
multilinetrueRender a <textarea> instead of <input>
rowsnumberNumber of visible rows (textarea only)
disabledbooleanfalseDisable the field
wrapperClassNamestringExtra class on the inner wrapper div