# Checkbox Documentation for the Checkbox component. ## Installation ```bash deno run -A jsr:@lockness/ui add checkbox ``` ## Usage ```tsx import { Checkbox, Label } from '@lockness/ui/components'
``` ## Props | Prop | Type | Default | Description | | ---- | ---- | ------- | ----------- | | TBD | TBD | TBD | TBD | ## Examples ## Theming The Checkbox component can be fully customized using CSS variables. This allows you to adjust size, colors, and border styling to match your design system while maintaining consistent behavior and accessibility. ### Available CSS Variables | Variable | Default | Description | | -------------------------- | --------------------------- | ------------------------------------- | | `--checkbox-size` | `1rem` | Width and height of the checkbox | | `--checkbox-border-radius` | `calc(var(--radius) - 2px)` | Border radius of the checkbox corners | | `--checkbox-border-color` | `var(--primary)` | Border color of the checkbox | | `--checkbox-accent-color` | `var(--primary)` | Accent color used for checked state | ### Theming Examples #### Global Customization Add these styles to your `app.css` to customize all Checkbox components across your application: ```css :root { /* Larger checkbox */ --checkbox-size: 1.25rem; /* More rounded corners */ --checkbox-border-radius: 0.375rem; /* Custom brand colors */ --checkbox-border-color: hsl(260 100% 60%); --checkbox-accent-color: hsl(260 100% 60%); } ``` #### Local Overrides Override theming for specific checkboxes using inline styles: ```tsx {/* Large checkbox */} {/* Circular checkbox with custom color */} {/* Small compact checkbox */} {/* Colored checkbox variants */}
```