alwkala

Checkbox

Cards

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>
  );
}

More by alwkala

View all
  • Callout

    Callout

    7
  • Progress Bar

    Progress Bar

    1
  • Kbd

    Kbd

  • Pagination

    Pagination

  • Ribbon

    Ribbon

  • Rating

    Rating

  • Data Table

    Data Table

  • Navbar

    Navbar

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Card Studio

    Card Studio

    12
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    609
  • Statistics Card 7

    Statistics Card 7

    327
  • Card

    Card

    19
  • Card

    Card

    60
  • Stats cards with links

    Stats cards with links

    96