observable-framework-input-radio

Installation
SKILL.md

Input: Radio

Observable Framework documentation: Input: Radio Source: https://observablehq.com/framework/input-radio

API · Source · The radio input allows the user to choose one of a given set of values. (See the checkbox input for multiple-choice.) A radio is recommended over a select input when the number of values to choose from is small — say, seven or fewer — because all choices will be visible up-front, improving usability.

const color = view(Inputs.radio(["red", "green", "blue"], {label: "color"}));
color

Note that a radio cannot be cleared by the user once selected; if you wish to allow no selection, include null in the allowed values.

Related skills
Installs
3
First Seen
Feb 28, 2026