Checkbox
A control element that allows for multiple selections within a set.
A control element that allows for multiple selections within a set.
import { Checkbox, type CheckboxProps } from '@tacos-ui/react';
export const Demo = (props: CheckboxProps) => {
return (
<Checkbox defaultChecked {...props}>
Label
</Checkbox>
);
};
The indeterminate
state signifies a checkbox with only some of its related options selected.
<Checkbox checked="indeterminate" />
By default, the checkbox uses the accent
color from the theme. To render a checkbox with a different color, use the
colorPalette
prop.
<Checkbox colorPalette="red" defaultChecked />