Skip to content

Radio Group

<bh-radio-group> | BharatRadioGroup

The Radio Group component provides a set of mutually exclusive options that users can select from. It includes validation and various customization options.

Basic Usage

Orientation

Control the layout direction of radio options:

Required Validation

Disabled State

Radio Group Properties

PropertyTypeDescription
labelstringThe label for the radio group
valuestringCurrently selected value
disabledbooleanDisables the entire radio group
requiredbooleanMakes selection required
sizestringSize of radio buttons: small, medium, large
orientationstringLayout direction: vertical, horizontal
fontColorstringStyle font for radio group
labelColorstringStyle radio group label color
optionTextColorstringStyle radio group options text color
accentColorstringStyle radio group options accent color

Radio Option Properties

PropertyTypeDescription
valuestringValue for the radio option
disabledbooleanDisables individual radio option
checkedbooleanDefault checked state for radio option
textColorstringStyle radio option text color
accentColorstringStyle radio option accent color

Events

EventDetailDescription
radio-selected{ value: string }Fired when radio option is selected
change<bh-radio-group>Emits { label, values } when selection changes