Vesture
Get started

Inputs

Radio

A radio input using the same hidden-input pattern as Checkbox. Group multiple with a shared name.

Radio

Preview

Usage

tsx
import { Radio } from "@vesture/react";

<Radio name="shipping" value="standard" label="Standard shipping" checked={shipping === "standard"} onChange={() => setShipping("standard")} />
<Radio name="shipping" value="express" label="Express shipping" checked={shipping === "express"} onChange={() => setShipping("express")} />

Props

PropTypeDefaultDescription
labelReactNodeRendered after the visual circle.
...restOmit<InputHTMLAttributes<HTMLInputElement>, "type">Spread onto the hidden native input — name, value, checked, onChange.