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 RadioDisabledOptionsDemo() {
const [value, setValue] = useState("");
return (
<Radio
name="radio-disabled"
label="Select plan"
value={value}
onChange={(e) => setValue(e.target.value)}
options={[
{ value: "basic", label: "Basic Plan" },
{ value: "pro", label: "Pro Plan" },
{ value: "enterprise", label: "Enterprise Plan", disabled: true },
]}
/>
);
}











