"use client"; import React from "react"; import { Checkbox } from "@/subframe/components/Checkbox"; function CheckboxExample() { return ( <Checkbox label="Label" disabled={false} checked={false} onCheckedChange={(checked: boolean) => {}} /> ); } export default CheckboxExample;
label
string
"Label"
disabled
boolean
false
checked
onCheckedChange
(checked: boolean) => void
Use checked and onCheckedChange props to control the checked state.
View code