ShadcnUI.Components.Content.RadioPanels (shadcn_ui v1.0.0)

Copy Markdown View Source

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.

Summary

Functions

Renders a native radio group and deterministically related panel content.

Functions

radio_panels(assigns)

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)