Components
Works like a native checkbox with value and name passed to the form on submission. Comes in three sizes, supports error, disabled and indeterminate states, controlled and uncontrolled modes, and a CheckboxGroup compound for selecting multiple values with any layout, including card-based composition.
npx @21st-dev/cli add reshaped/reshaped-checkboxLoading preview...
import { Reshaped, View } from "reshaped/bundle";
import Checkbox, { CheckboxGroup } from "@/components/ui/reshaped-checkbox";
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
<CheckboxGroup name="animalValue" defaultValue={["cat"]}>
<View gap={2}>
<Checkbox value="dog">Dog</Checkbox>
<Checkbox value="cat">Cat</Checkbox>
</View>
</CheckboxGroup>
</div>
</Reshaped>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...