Checkbox
roi-ui/checkboxFreeItem
A control that allows users to select one or more options from a set.
Install it
npx shadcn@latest add https://roiui.com/r/checkbox.jsonSource
1"use client";23import { Checkbox } from "@base-ui/react/checkbox";4import { cn } from "@/lib/utils";5import styles from "./checkbox.module.css";67function CheckboxRoot({ className, ...props }: Checkbox.Root.Props) {8 return (9 <Checkbox.Root className={cn("hit-area-extend", styles.root, className)} data-slot="checkbox-root" {...props} />10 );11}1213function CheckboxIndicator({ className, ...props }: Checkbox.Indicator.Props) {14 return <Checkbox.Indicator className={cn(styles.indicator, className)} data-slot="checkbox-indicator" {...props} />;15}1617export { CheckboxRoot as Checkbox, CheckboxIndicator };
Files it writes
More from Roi UI
All 123 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Roi UI | Other | Free | no deps · 2 files | |
| Accordion (Tailwind)accordion-tailwind | Roi UI | Other | Free | no deps | |
| AI Chatai-chat | Roi UI | Other | Free | no deps · 2 files | |
| AI Chat (Tailwind)ai-chat-tailwind | Roi UI | Other | Free | no deps | |
| Alertalert | Roi UI | Other | Free | 1 dep · 2 files | |
| Alert Dialogalert-dialog | Roi UI | Other | Free | no deps · 2 files | |
| Alert Dialog (Tailwind)alert-dialog-tailwind | Roi UI | Other | Free | no deps | |
| Alert (Tailwind)alert-tailwind | Roi UI | Other | Free | 1 dep |
