Skip to content
Back

Radio groupPro

Pick one: a list, cards or an inline row, with descriptions and options that are disabled with a reason.

oxyn add radio-group
Approval mode
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Pick one: a list, cards or an inline row, with descriptions and options that are disabled with a reason.

When not to use

Installation

Radio group is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add radio-group

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

List

Stacked with descriptions.

Approval mode
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Cards

Each option is a card.

Approval mode
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Inline

One row.

Approval mode
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Segmented

A segmented tray with one gliding pill (Oxyn plus).

Approval mode
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

RadioGroup

PropTypeDefaultDescription
labelrequiredString—Group label.
optionsrequiredVec<RadioOption>—Options.
valueOption<String>Default::default()Selected value.
layoutString"list"`list` · `cards` · `inline` · `segmented`.
nameOption<String>Default::default()Native radio name for form submission (a hidden input carries the value).
on_changeEventHandler<String>—Changed.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
↑or↓ or ←or→Move and select (skips disabled options)
TabInto the group lands on the selected option

Accessibility

  • role=radiogroup with a label; one tab stop with roving focus.
  • Disabled options stay readable and say why ("Your admin turned this off").

Responsive behaviour

  • list and cards stack vertically; inline puts the options in one row for short labels.

Notes for AI

  • Import RadioGroup from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: RadioGroupEl in oxyn_gpui.
  • Props to set first: label, options.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI