Skip to content

Radio ​

Basic

Loading...

Disabled

Loading...

<flint-radio-group> ​

Radio Group: manages a set of radio buttons with single selection.

  • Tag: <flint-radio-group>
  • Class: FlintRadioGroup

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintRadioGroup } from 'flint-ui';

Usage ​

html
<flint-radio-group></flint-radio-group>

Properties ​

PropertyAttributeTypeDefaultDescription
labellabelstring''Accessible label for the radio group.
namenamestring''Form field name for all radios in the group.
valuevaluestring''Currently selected radio value.
defaultValuedefault-valuestring''Initial value for uncontrolled usage.
disableddisabledbooleanfalseDisables all radios in the group.
requiredrequiredbooleanfalseMarks the group as required for form validation.
orientationorientationRadioOrientation'vertical'Layout direction of the radio buttons.
sizesizeRadioSize'md'Size of the radio buttons.

Events ​

EventDetailDescription
flint-radio-group-change—Fired when the selected radio value changes.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-radio-group-gap8px
--flint-font-family—
--flint-text-color—
--flint-input-border-color—
--flint-surface-1—
--flint-primary-color—
--flint-primary-focus-ring—

<flint-radio> ​

Radio: a single radio button within a radio group.

  • Tag: <flint-radio>
  • Class: FlintRadio

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintRadio } from 'flint-ui';

Usage ​

html
<flint-radio></flint-radio>

Properties ​

PropertyAttributeTypeDefaultDescription
checkedcheckedbooleanfalseWhether this radio is selected.
disableddisabledbooleanfalseDisables this radio and prevents interaction.
requiredrequiredbooleanfalseWhether this radio is required.
namenamestring''Form field name (usually set by the parent group).
valuevaluestring''Value associated with this radio option.
labellabelstring''Visible label text for this radio option.
sizesizeRadioSize'md'Size of the radio button.

Events ​

EventDetailDescription
flint-radio-select—Fired when this radio is selected.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-radio-disabled-opacity0.5
--flint-radio-group-gap8px
--flint-radio-size18px
--flint-radio-gap8px
--flint-radio-size-sm14px
--flint-radio-size-lg22px
--flint-radio-dot-size8px
--flint-radio-dot-size-sm6px
--flint-radio-dot-size-lg10px
--flint-radio-label-font-size14px
--flint-radio-label-font-size-sm12px
--flint-radio-label-font-size-lg16px

Methods ​

MethodDescription
focus(options?: FocusOptions)