Skip to content
ghostui

Radio group

Provides shared state to a series of radio buttons.

Preview

Best apple

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

Use the exported component in the composition shown above. Keep labels, data, and callbacks in the consuming application.

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.

Best apple

The Preview above is the canonical radio-group example. Compose it with the public parts shown in Structure.

API reference

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

This component wraps Base UI radio-group for its behavior.