Skip to main content
  1. Docs
  2. Components
  3. Forms

Radio

One answer from a few, all in view and always answered. The group is one Tab stop.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="radiogroup">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Session length
Orientation
session-length.tsx
import { Radio, RadioGroup } from "@qeetrix/react";

<RadioGroup label="Session length" defaultValue="8h">
  <Radio value="1h" label="1 hour" />
  <Radio value="8h" label="8 hours" />
  <Radio value="24h" label="24 hours" />
</RadioGroup>

02

A group

One answer from a few, always answered. Arrow keys move and choose; the group is one Tab stop.

Billing cycle

₹2,400 a seat

₹24,000 a seat: two months free

03

In a row

orientation="horizontal", for short options.

Session length

04

Tiles

variant="tile": for choices that need explaining, such as an application's type.

Application type

Signs people in on a server.

iOS or Android, with PKCE.

Machine to machine, no people.

05

Controlled

Generic over its value: RadioGroup<"monthly" | "yearly">, and the page follows it.

Billing cycle

₹2,400 a seat

₹24,000 a seat: two months free

Renews on 1 November 2027.

06

Invalid and disabled

The group's error; an option that can't be chosen, and why.

Data region

Not on your plan.

Choose where Acme's data lives.
Next — RadioUsage