# `ShadcnUI.Components.Content.RadioPanels`
[🔗](https://github.com/pcharbon70/shadcn_ui/blob/main/lib/shadcn_ui/components/content/radio_panels.ex#L1)

Native radio selection paired with caller-owned panel content.

Radio Panels is deliberately not a tab widget. It renders one fieldset and
native radio group, submits an ordinary scalar form value, and exposes no tab
roles, roving tabindex, focus management, history, or package-owned state.
Capability-gated CSS may reduce panel density; without it every panel remains
visible in source order.

# `radio_panels`

Renders a native radio group and deterministically related panel content.
## Attributes

* `id` (`:string`) (required)
* `name` (`:string`) (required)
* `selected` (`:any`) (required)
* `layout` (`:atom`) - Defaults to `:vertical`. Must be one of `:vertical`, or `:horizontal`.
* `required` (`:boolean`) - Defaults to `false`.
* `disabled` (`:boolean`) - Defaults to `false`.
* `form` (`:string`) - Defaults to `nil`.
* `class` (`:any`) - Defaults to `nil`.
* `legend_class` (`:any`) - Defaults to `nil`.
* `option_class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.
## Slots

* `legend` (required)
* `option` (required) - Accepts attributes:

  * `key` (`:string`) (required)
  * `value` (`:string`) (required)
  * `label` (`:string`) (required)
  * `disabled` (`:boolean`)
  * `class` (`:any`)
  * `input_rest` (`:map`)
  * `panel_rest` (`:map`)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
