Command Palette

Search for a command to run...

Docs
Checkbox Card

Checkbox Card

A card-style checkbox with icon, title, and description for rich selections.

Installation

Usage

import CheckboxCard from "@/components/ruixen/checkbox-card";
import { Zap } from "lucide-react";
 
export default function MyComponent() {
  return (
    <CheckboxCard
      title="Performance"
      description="Optimized for speed and efficiency"
      icon={<Zap className="size-5" />}
    />
  );
}

Props

PropTypeDefaultDescription
checkedboolean-Controlled checked state
defaultCheckedbooleanfalseDefault checked state
onCheckedChange(checked: boolean) => void-Callback when state changes
titlestring-Card title (required)
descriptionstring-Card description
iconReact.ReactNode-Optional icon element
disabledbooleanfalseDisable the checkbox
classNamestring-Additional CSS classes

Features

  • Card-style selection UI
  • Icon, title, and description support
  • Active state with border highlight
  • Round checkbox indicator
  • Light and dark mode support