Radio Group
@sushindustries/uiRadios in a fieldset - the one grouping screen readers announce without help.
Examples are the tab where the component is shown doing a job, not demonstrating a prop. The API tab already lists the props.
tanstacktanstack add https://adamjurek.com/r/tanstack/radio-group.jsonpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/radio-group.jsonPress Compare. The frames are real viewports, so a layout that breaks at 320 breaks here too rather than in somebody's hands.
In a page
import { RadioGroup } from "@sushindustries/ui";
import { useState } from "react";
export function CheckoutForm() {
const [speed, setSpeed] = useState("standard");
return (
<form className="flex flex-col gap-6">
<RadioGroup
label="Shipping speed"
options={[
{ value: "standard", label: "Standard - 3 to 5 days" },
{ value: "express", label: "Express - next day" },
]}
value={speed}
onChange={setSpeed}
/>
</form>
);
}tsx