DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Checkbox
  3. Checkbox Nested Permissions
MarkdownShare

Shadcn Checkbox Nested Permissions

Nested checkbox group. Built by composing Checkbox, Field. A free, open source shadcn checkbox example you can install with npx shadcn@latest add @reui/c-checkbox-16 and edit as your own code.

Nested checkbox group

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: A 3 level permission tree where a parent ticks or clears every leaf below and shows a mixed state when only some are on

When to use

  • Consent and opt-in fields, such as accepting terms or turning on a feature
  • Lists where any number of options can be ticked, like notification channels or permissions
  • Selectable cards and tiles for modules, people or a saved payment card

When not to use

  • A hierarchy deep enough to need branches that expand and collapse: use the Tree component
  • A choice where exactly 1 option of a set may be picked: use the Radio Group component
  • An on or off setting that applies the moment it is flipped: use the Switch component
  • A complete record entry page with many field types and a submit handler: use the Form blocks

Agent notes

  • data is the sample permission tree and checked seeds 3 ticked leaves; replace both with your own roles and grants
  • Only leaf ids are stored in checked; parent state is derived through getLeafIds, so persist leaves only
  • No example passes a name to Checkbox, so a native submit sends none of these boxes; give each one a name inside a real form
  • The base twin sets the mixed state with the indeterminate prop; the radix twin passes checked as the string indeterminate
  • A mixed state draws the same CheckIcon as a ticked box, as the indicator has no minus icon; add one in Checkbox to show a dash
Markdownhttps://reui.io/components/checkbox/c-checkbox-16.md
MCPget_example("c-checkbox-16")
Installnpx shadcn@latest add @reui/c-checkbox-16
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Checkbox Nested Permissions

  • Checkbox
  • Field

About Shadcn Checkbox Nested Permissions

Nested checkbox group. Built by composing Checkbox, Field. A free, open source shadcn checkbox example you can install with npx shadcn@latest add @reui/c-checkbox-16 and edit as your own code.

What You Can Build With Shadcn Checkbox Nested Permissions

  • Composes Checkbox, Field, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-checkbox-16
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Checkbox Examples

  • Basic Basic checkbox with label
  • Disabled Disabled checkbox
  • Invalid Invalid checkbox
  • Indeterminate Indeterminate checkbox
  • Label & Description Checkbox with label and description
  • Colored Colored checkbox
  • Circle To-Do Circle checkbox
  • Basic Group Checkbox group
  • Setting Card Card checkbox with group
  • Frame Group Checkbox group in a frame
  • Card Rows Card checkbox group with icons
  • Icon Card Rows Card checkbox group with icons

Related Shadcn Component Categories

  • Code Block

    Open-source shadcn code block components with Shiki syntax highlighting for AI chat, streaming agent output, diff review, and documentation.

  • Collapsible

    Open-source shadcn collapsible components for expandable sections, detail rows, and progressive disclosure.

  • Color Picker

    Open-source shadcn color picker components for brand settings, theme editors, label colors, and design tools.

  • Combobox

    Open-source shadcn combobox components for searchable selection, async lookup, and command menus.

  • Command

    Open-source shadcn command menu components for command palettes, global search, and power-user navigation.

  • Context Menu

    Open-source shadcn context menu components for right-click menus, file actions, and table row actions.

Frequently Asked Questions

When should I use Shadcn Checkbox Nested Permissions?

Use it for a 3 level permission tree where a parent ticks or clears every leaf below and shows a mixed state when only some are on.

Shadcn Checkbox as a whole fits:

  • Consent and opt-in fields, such as accepting terms or turning on a feature
  • Lists where any number of options can be ticked, like notification channels or permissions
  • Selectable cards and tiles for modules, people or a saved payment card

For a hierarchy deep enough to need branches that expand and collapse, use the Tree component. For a choice where exactly 1 option of a set may be picked, use the Radio Group component. For an on or off setting that applies the moment it is flipped, use the Switch component. For a complete record entry page with many field types and a submit handler, use the Form blocks.

How do I install Shadcn Checkbox Nested Permissions?

Run npx shadcn@latest add @reui/c-checkbox-16. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Checkbox Nested Permissions free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Checkbox Nested Permissions use?

It composes Checkbox, Field. The shadcn CLI installs those alongside the example.
PreviousAvatar CardNextPayment Method

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K