ba-radio

A basic radio button component with a label, for use within ba-radio-group

Figma GitHub Storybook

Must be used with ba-radio-group

This component should not be used on its own. Always use it within ba-radio-group to ensure correct spacing, layout, and enable validation messages when used with other radio options

ba-radio-group

Always use the label attribute to give a meaningful label to the field.

Further reading:

Disabled form elements are not supported in BAgel because they create accessibility challenges, such as preventing keyboard navigation, confusing screen reader users, and reducing visual clarity for those with impairments

Further reading:

Code

Properties & Attributes

Property Attribute Description Type Default
label (required) label Text displayed next to the radio "" undefined
value (required) value The value of the radio string undefined

Slots

Slot Description Permitted elements

Parent components

ba-radio can be slotted into:

Usage

See ba-radio-group for usage examples.

GitHub Storybook Figma library Version 3 release guide Release history BAgel helper QA process