Primitive
Input
Displays a form input field or a component that looks like an input field.
Installation
npx benflux-ui add inputUsage
import { Input } from "@benflux-ui/react"
<Input placeholder="Enter your email" type="email" />With Label
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "filled" | "ghost" | "underline" | "default" | Visual style of the input |
| inputSize | "sm" | "default" | "lg" | "default" | Size of the input |
| error | boolean | false | Shows error state styling |
| success | boolean | false | Shows success state styling |