Skip to content

Radio Group Component

A group of radio buttons.

Properties

NameTypeDefaultDescription
direction'horizontal' | 'vertical''vertical'The direction in which the radio buttons are laid out. Defaults to vertical.
valuestring''The value of the selected radio button.

CSS Parts

NameDescription
radio-groupThe main container for the radio group.

Check this link to learn how to use CSS parts for Radio Group Component.

CSS Properties

TokenDefaultDescription
--tap-radio-group-padding--tap-sys-spacing-3The padding around the radio group.
--tap-radio-group-gap--tap-sys-spacing-3The gap between radio buttons.

Events

NameDescription
radio-group-changeDispatched when the selected radio button changes.