About
A WCAG-compliant radio button group for selecting one option from a list, with fieldset-style grouping, error and helper text, and full ARIA/keyboard support. Ported from A11Y Pros' a11y-radio web component, mirroring their original React Radio implementation, licensed MIT.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Accessible Radio Group to your project and fits it to your theme.
Code
How Accessible Radio Group is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import Radio from "@/components/ui/a11y-radio";
import { useState } from "react";
export default function RadioRequiredDemo() {
const [value, setValue] = useState("");
return (
<Radio
name="radio-required"
label="Select an option"
value={value}
onChange={(e) => setValue(e.target.value)}
required
options={[
{ value: "option1", label: "Option 1" },
{ value: "option2", label: "Option 2" },
{ value: "option3", label: "Option 3" },
]}
/>
);
}











