Components
Loading preview...
Enhanced checkbox
npx shadcn@latest add https://21st.dev/r/originui/checkboximport { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";
import { useId } from "react";
function Component() {
const id = useId();
return (
<div className="flex items-center gap-2">
<Checkbox id={id} />
<Label htmlFor={id}>
I agree to the{" "}
<a className="underline" href="https://originui.com" target="_blank">
terms of service
</a>
</Label>
</div>
);
}
export { Component };