Checkbox Group
adn-ui/checkbox-groupFreeComponent
Provides shared state management for a group of checkboxes.
Live preview
live · rendered by the registry
Rendered by adn-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.awaiden.com/r/checkbox-group.jsonSource
1"use client";23import "./checkbox-group.css";4import { CheckboxGroup as BaseCheckboxGroup } from "@base-ui/react/checkbox-group";5import type React from "react";6import { cn } from "tailwind-variants";78import { CheckboxGroupContext } from "./checkbox-group.context";9import { checkboxGroupVariants, type CheckboxGroupVariants } from "./checkbox-group.variants";1011export type CheckboxGroupProps = CheckboxGroupVariants &12 React.ComponentProps<typeof BaseCheckboxGroup>;1314export const CheckboxGroupRoot = ({15 children,16 className,17 orientation,18 ...props19}: CheckboxGroupProps) => {20 const slots = checkboxGroupVariants({ orientation });2122 return (23 <CheckboxGroupContext.Provider value={{ slots }}>24 <BaseCheckboxGroup className={cn(slots.root(), className)} {...props}>25 {children}26 </BaseCheckboxGroup>27 </CheckboxGroupContext.Provider>28 );29};
What it pulls in
npm packages
Files it writes
More from adn-ui
All 48 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | adn-ui | Components | Free | 2 deps · 5 files | |
| Alert Dialogalert-dialog | adn-ui | Components | Free | 2 deps · 5 files | |
| Aspect Ratioaspect-ratio | adn-ui | Components | Free | 1 dep · 4 files | |
| Autocompleteautocomplete | adn-ui | Components | Free | 2 deps · 5 files | |
| Avataravatar | adn-ui | Components | Free | 2 deps · 5 files | |
| Badgebadge | adn-ui | Components | Free | 1 dep · 4 files | |
| Breadcrumbbreadcrumb | adn-ui | Components | Free | 1 dep · 5 files | |
| Buttonbutton | adn-ui | Components | Free | 1 dep · 4 files |
