Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Release notes
Changelog
Elyra

RadioGroup

One of a few choices, all in sight. These are native radios, drawn to match the rest. For a longer list, use a Select.

Examples
<script>
  import { Field, RadioGroup } from "@elyra/ui";

  let billing = $state("yearly");
</script>

<Field label="Billing">
  <RadioGroup
    bind:value={billing}
    inline
    options={[
      { value: "monthly", label: "Monthly" },
      { value: "yearly", label: "Yearly" },
      { value: "lifetime", label: "Lifetime", disabled: true },
    ]}
  />
</Field>

options are strings, or { value, label, disabled }. bind:value is the chosen one's value. inline puts them on one line.

Outside a field

In a Field, the field's label names the group. Outside one, give it a label.

<script>
  import { RadioGroup } from "@elyra/ui";

  let delivery = $state("Email");
</script>

<RadioGroup label="Send invoices by" bind:value={delivery} options={["Email", "EHF", "Post"]} />

Keyboard

Key
Tab Into the group, on the chosen option, and out again.
↓ →, ↑ ← Choose the next or the previous option.

Accessibility

  • A role="radiogroup", named by label or by the field's label. In a Field, it has aria-describedby and aria-invalid.
  • The radios share a name: the field's, or one of the group's own. The browser moves between them.

API

RadioGroup

Prop Type Default Description
value (bindable) any — The chosen option's value.
options Array<string | { value, label, disabled? }> []
label string — The group's name, outside a Field.
inline boolean false On one line.
class string ""

Other attributes go to the group's <div>.