About
A dark-themed accessible radio group with an optional group label and per-option hints, for letting a user pick exactly one choice from a short list (e.g. shipping method, plan tier). Ported to React from the Vue component in azabroflovski's oyna-ui.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Radio to your project and fits it to your theme.
Code
How Radio 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/radio";
import { useState } from "react";
export default function RadioDemo() {
const [value, setValue] = useState("standard");
return (
<div
className="w-full max-w-sm rounded-xl p-6"
style={{ background: "#0b0b0f" }}
>
<Radio
label="Shipping method"
value={value}
onChange={setValue}
items={[
{
value: "standard",
label: "Standard",
hint: "Delivered in 5-7 business days",
},
{
value: "express",
label: "Express",
hint: "Delivered in 1-2 business days",
},
{
value: "overnight",
label: "Overnight",
hint: "Currently unavailable",
disabled: true,
},
]}
/>
</div>
);
}
















