Skip to content
ghostui

Checkbox Group

Provides shared state to a series of checkboxes.

Preview

Apples

Design guidance

Use CheckboxGroup for several independent choices that share a label. Use RadioGroup when only one choice is valid.

Installation

Install the local ghost-kit source bundle while the registry runs at localhost:3110. It contains this component and its source dependencies. Prepare the local registry first so token dependencies also resolve locally.

Install

Basic usage

Structures

Examples

Interactive style

Use variant="interactive" to add row hover feedback and an inner control fill. Both styles fill the core control on hover. The default keeps the row and text unchanged. Set the variant on the group to style all its rows. Keyboard focus remains visible in both styles.

Apples

Parent checkbox

Apples selects or clears every variety. A partial selection gives the parent a mixed state.

Nested parent checkbox

User permissions groups View dashboard and Manage users. Each parent reflects its descendants.

API reference

variant accepts "default" | "interactive" and defaults to "default". Set it on CheckboxGroup to style its rows and controls. Use the group variant for shared-background lists. Group controls align with the group label in both styles.

For inherited behavior and additional part properties, see the Base UI Checkbox Group API.