fndn/ui

Components

Radio Group

Beta

Pick exactly one of a short list of options, all visible at once.

Details

Pick exactly one of a short list of options, all visible at once. Each option is a 16px round control on a hairline ring whose inset ring grows into a 5px ink ring when selected, so the 6px on-ink centre forms as the ring closes in. Stacked or in a row. It is one tab stop: arrow keys move and select. Behaviour comes from the Zag radio-group machine, through Ark UI in React, Vue and Svelte. Visually hidden native radios carry focus, arrow keys and the form value.

Behaviour from Ark UI, the radio-group machine of Zag.