Command Palette

Search for a command to run...

Docs
Checkbox Colored

Checkbox Colored

A checkbox with customizable color themes including blue, green, red, and more.

Installation

Usage

import CheckboxColored from "@/components/ruixen/checkbox-colored";
 
export default function MyComponent() {
  return (
    <div className="flex gap-4">
      <CheckboxColored label="Blue" color="blue" />
      <CheckboxColored label="Green" color="green" />
      <CheckboxColored label="Red" color="red" />
    </div>
  );
}

Props

PropTypeDefaultDescription
checkedboolean-Controlled checked state
defaultCheckedbooleanfalseDefault checked state
onCheckedChange(checked: boolean) => void-Callback when state changes
labelstring-Label text
color"default" | "blue" | "green" | "red" | "yellow" | "purple" | "pink""default"Checkbox color theme
disabledbooleanfalseDisable the checkbox
classNamestring-Additional CSS classes

Features

  • Seven color themes available
  • Consistent styling across colors
  • Color-matched focus rings
  • Accessible focus states
  • Light and dark mode support