Airframe GitHub Storybook

ba-filter-radio

A radio filter component

Figma

GitHub

Storybook

Must be used with ba-filter

This component should not be used on its own. Always use it within ba-filter to ensure correct spacing and layout

ba-filter
<ba-toolbar>
  <ba-filter label="Stops" slot="filters">
    <ba-filter-radio label="Any number of stops" value="0"></ba-filter-radio>
    <ba-filter-radio label="Direct only" value="1"></ba-filter-radio>
    <ba-filter-radio label="2 stops or fewer" value="2"></ba-filter-radio>
  </ba-filter>
</ba-toolbar>

This component is for when only one item at a time can be selected. If you need multi select, use ba-filter-checkbox instead.

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

Further reading:

Property Attribute Description Type Default
label(required) label Text displayed next to the radio string undefined
value(required) value The value of the radio string undefined
Slot Description Permitted elements
Unnamed slot Elements will render in the body of the component <ba‑star‑rating>

ba-filter-radio can be slotted into:

See ba-toolbar for usage examples.

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