Input

Text input with label, left/right icons, 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.

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

Updated