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

    10
  • Progress Bar

    Progress Bar

    3
  • Breadcrumb

    Breadcrumb

    1
  • Navbar

    Navbar

    1
  • Kbd

    Kbd

  • Pagination

    Pagination

  • Back To Top

    Back To Top

  • Seal

    Seal

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198