Diwa Design System

Radio Group

A group of radio inputs that lets users select exactly one option from a set.

diwa-radio-group — Properties

NameTypeDefaultDescription
labelstring''Group label text shown above the options.
descriptionstring''Supplementary description shown below the label.
valuestring''Currently selected value. Synced to child items automatically.
direction'column' | 'row''column'Layout direction of the radio options.
state'none' | 'error' | 'success''none'Validation state.
messagestring''Feedback message shown when state is error or success.
namestring''Shared native name attribute for all radio inputs in the group.
requiredbooleanfalseWhether a selection is required.
disabledbooleanfalseDisables all child items.
compactbooleanfalseEnables dense mode with smaller radio controls for denser layouts.
hideLabelbooleanfalseHides the label visually while keeping it accessible.
theme'dark' | 'light''dark'Per-component theme override.

diwa-radio-group — Events

NameDetail typeBubblesDescription
update{ value: string }NoEmitted when the selected value changes.

diwa-radio-group — Slots

NameDescription
(default)Place diwa-radio-group-item elements here.

diwa-radio-group-item — Properties

NameTypeDefaultDescription
valuestring''The value emitted when this item is selected.
checkedbooleanfalseWhether this option is selected. Set automatically by the parent group.
namestring''Native name attribute. Set automatically by the parent group.
disabledbooleanfalseDisables this item. Also set by the parent group.
compactbooleanfalseDense-mode sizing for denser layouts.
theme'dark' | 'light''dark'Per-component theme override.

diwa-radio-group-item — Slots

NameDescription
(default)Label text for this radio option.