Usage
import { TextArea } from "lambda-ui-components";
export default function App() {
return (
<TextArea label="Description" placeholder="Enter your description..." />
);
}TextArea component allows users to enter multi-line text.
Experiment with all the properties of the TextArea component in real time.
Optional text label for the textarea.
Placeholder text.
Helper text displayed below the textarea.
Error message displayed when invalid.
Defines the visual style of the textarea.
Controls the overall textarea size.
Controls the roundness of the corners.
Indicates if the field is invalid.
Disables user interaction.
Indicates if the field is required.
import { TextArea } from "lambda-ui-components";
export default function App() {
return (
<TextArea label="Description" placeholder="Enter your description..." />
);
}Prop | Default | Type |
|---|---|---|
label | undefined | string |
placeholder | undefined | string |
value | undefined | string |
onChange | undefined | (e: React.ChangeEvent<HTMLTextAreaElement>) => void |
variant | "outline" | "solid" | "soft" | "outline" |
size | "medium" | "tiny" | "small" | "medium" | "large" |
radius | "medium" | "none" | "tiny" | "small" | "medium" | "large" | "full" |
invalid | false | boolean |
errorMessage | undefined | string |
helperText | undefined | string |
disabled | false | boolean |
required | false | boolean |