Usage
import { Input } from "lambda-ui-components";
<Input />Input component is a form element that allows users to enter text
Experiment with all the properties of the Input component in real time.
Text shown when the input is empty.
Defines the input label.
Custom message shown when invalid.
Adds supporting text below the input.
Adds an element before the value.
Adds an element after the value.
Controls the color of the switch when active.
Selects the visual style.
Chooses the native input type.
Adjusts the input’s scale.
Controls corner roundness.
Enables the floating label effect.
Marks the input as invalid.
Marks the field as mandatory.
Makes the input non-interactive.
import { Input } from "lambda-ui-components";
<Input />Prop | Default | Type |
|---|---|---|
size | "medium" | "tiny" | "small" | "medium" | "large" |
radius | "medium" | "none" | "tiny" | "small" | "medium" | "large" | "full" |
variant | "outlined" | "outlined" | "soft" |
invalid | false | boolean |
disabled | false | boolean |
type | "text" | "text" | "password" | "email" | string |
label | undefined | string |
errorMessage | undefined | string |
floatingLabel | false | boolean |
helperText | undefined | string |
required | false | boolean |
prefix | undefined | ReactNode | string |
suffix | undefined | ReactNode | string |
onChange | undefined | (value: string) => void |
value | "" | string |
placeholder | "" | string |
joinposition | undefined | "first" | "last" | "middle" |