Input

Text input with label, left/right icons, optional stable error row, error shake and success check draw.

Preview

Install

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

$ bunx --bun shadcn add @beui/input

API Reference

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

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

—
reserveErrorLine?
boolean

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

false
success?
boolean
—
leftIcon?
ReactNode
—
rightIcon?
ReactNode
—
className?
string
—
classNames?
InputClassNames
—

Updated