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 justify-between gap-2">
<Checkbox id={id} className="order-1" />
<Label htmlFor={id}>Right aligned checkbox</Label>
</div>
);
}
export { Component };