Components
Loading preview...
This is a checkbox component
npx shadcn@latest add https://21st.dev/r/lyanchouss/new-checkbox"use client";
import { useState } from "react";
import { Checkbox } from "@/components/ui/chekbox";
export function CheckboxPreview() {
const [checked, setChecked] = useState(true);
return (
<div className="flex min-h-screen items-center justify-center">
<Checkbox checked={checked} onChange={setChecked}>
<span className="text-muted-foreground">
Email me when the next release ships
</span>
</Checkbox>
</div>
);
}
export default CheckboxPreview;