About
A styled checkbox input with an optional label and helper description text, including success/danger tone variants and a disabled state.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Checkbox to your project and fits it to your theme.
Code
How Checkbox is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Checkbox from "@/components/ui/checkbox";
export default function CheckboxCardDemo() {
return (
<div
data-theme="dark"
dir="rtl"
className="grid gap-4 rounded-2xl p-6 sm:grid-cols-2"
style={{ background: "#09090b" }}
>
<Checkbox
defaultChecked
className="qhr-checkbox-card"
label="المصادقة الثنائية (2FA)"
description="تأمين تسجيل الدخول عبر إرسال رموز التحقق إلى هاتفك المحمول."
/>
<Checkbox
className="qhr-checkbox-card"
label="تنبيهات البريد الأسبوعية"
description="موجز أسبوعي بأهم مقاييس الأداء وتحديثات الفريق."
/>
</div>
);
}















