Usage
import { Checkbox } from "lambda-ui-components";
<Checkbox />Checkbox component is a form element that allows users to select one or more options from a list of choices.
Experiment with all the properties of the Checkbox component in real time.
Sets the text shown next to the control.
Sets the color theme.
Changes the visual style.
Adjusts the label position.
Adjusts the overall size.
Controls corner rounding.
Marks the field as invalid.
Indicates that selection is required.
Prevents user interaction.
import { Checkbox } from "lambda-ui-components";
<Checkbox />Prop | Default | Type |
|---|---|---|
size | "medium" | "tiny" | "small" | "medium" | "large" |
radius | "tiny" | "none" | "tiny" | "small" | "medium" | "large" | "full" |
color | "primary" | "neutral" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" |
variant | "solid" | "solid" | "outline" | "soft" |
positionLabel | "right" | "left" | "right" | "top" | "bottom" |
invalid | false | boolean |
label | undefined | string |
disabled | false | boolean |
required | false | boolean |
defaultChecked | false | boolean |
checked | false | boolean |
onCheckedChange | undefined | (checked: boolean) => void |