Skip to content

Quill docs

Radio

A radio group for one-of-many choices, with labelled options and token-driven selected state.

Preview#

This preview is server-rendered from the real qquill-design builder; the page ships the component CSS that builder returns, so the docs cannot drift from the crate API.

Design-system contract#

  • BUILT: group carries radiogroup semantics; each option exposes radio state.
  • BUILT: labels are escaped and associated by id, not fragile text matching.
  • Interactive: `.island(...)` hydrates keyboard/pointer selection in place.

Code#

Construct the component with its builder:

Radio::new("tier", vec!["Starter".into(), "Team".into()])
    .selected(1)
    .tone(Tone::Brand)
    .render()