Input

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/input

API Reference

label?
string
Default—
value?
string
Default—
defaultValue?
string
Default—
onChange?
((value: string) => void)
Default—
error?
string | boolean

Truthy error triggers a shake, red border and (if a string) a message.

Default—
reserveErrorLine?
boolean

Reserve one message line so validation does not shift nearby content.

Defaultfalse
success?
boolean
Default—
leftIcon?
ReactNode
Default—
rightIcon?
ReactNode
Default—
className?
string
Default—
classNames?
InputClassNames
Default—
Also on React Native. Error shake, focus ring and a drawn success check.

Updated