Animated Input

Buttons

A floating-label text input with animated border, focus ring, optional left/right icons, error state, and three sizes (sm, md, lg).

Loading preview...
Customize
Size:
Label
Placeholder
Disabled
Error

Props

PropTypeDefaultDescription
labelstringundefinedFloating label text displayed above the input.
placeholderstringundefinedPlaceholder text shown when the label is floating.
valuestring''Controlled input value.
onChange(e: React.ChangeEvent<HTMLInputElement>) => voidundefinedChange handler for the input.
errorstringundefinedError message displayed below the input.
disabledbooleanfalseDisables the input.
size'sm' | 'md' | 'lg''md'Input size variant.
leftIconReact.ReactNodeundefinedIcon rendered on the left side of the input.
rightIconReact.ReactNodeundefinedIcon rendered on the right side of the input.
classNamestring''Additional CSS classes.
typestring'text'HTML input type attribute.