StellarUI

<stellar-radio-item>

Individual radio option surface for the upcoming `stellar-radio` controller.

Properties

Component
Example

Preview

Choice A Optional helper copy.

Markup

Copy
<stellar-radio-item
  checked
  value="choice-a"
>
  Choice A
  <span slot="description">Optional helper copy.
</span>
</stellar-radio-item>

API

Complete props, events, slots, and implementation notes for the shipped radio item.

Props

PropTypeDefaultNotes
appearancenormal | fillednormalSwitches between the default radio row and the filled/filter-style option surface.
sizexs | sm | md | lg | xlmdScales the visual dot and copy size together.
labelstring''Fallback label text when default slot content is not authored.
descriptionstring''Fallback helper copy for the description slot.
valuestring''Option value that the parent controller will read when selection is committed.
checkedbooleanfalseMarks the option as selected.
disabledbooleanfalsePrevents selection and applies the disabled treatment.

Events

EventSourceNotes
custom eventsnonestellar-radio-item is a passive option surface. The parent stellar-radio controller will own interaction events.

Slots

SlotNotes
defaultMain option label content. Overrides the label prop when present.
labelExplicit named label slot when the parent markup needs to separate default children from label text.
descriptionOptional helper copy below the label. Overrides the description prop when present.

Notes

  • `stellar-radio-item` is the option primitive that the upcoming `stellar-radio` controller will own.
  • It currently renders as a standalone radio option surface with `role="radio"`, checked state styling, and slot-based label/description copy.
  • `checked` and `disabled` can be driven directly today, but they are expected to be controller-managed once `stellar-radio` is shipped to the slotted-item boundary.
  • `data-tone` and `data-group-disabled` are intentionally external state channels used by the controller rather than public props on the item itself.
  • `appearance` switches between the default radio-row treatment and the filled/filter-style item surface already supshipped by the shared CSS.