sterling-svelte  1.0.4
A modern, accessible, lightweight UI component library for Svelte.

Radio

A styled HTML input element with type=radio.

Props

HTMLInputElement props are included.

/** Additional class names to apply. */
export let variant: string = '';

Events

HTMLInputElement events are included.

Methods

HTMLInputElement blur, click, and focus methods are included.

Anatomy

<div class="sterling-radio">
  <div class="container">
    <!-- hidden -->
    <input />
    <div class="indicator" />
  </div>
  <label>
    <slot {checked} {disabled} {group} {inputId} {value} {variant} />
  </label>
</div>

Playground