registry/default/particles/p-radio-group-9.tsx
"use client";
import {
segmentedControlItemVariants,
segmentedControlRootClassName,
} from "@/registry/default/lib/segmented-control";
import {
RadioGroupPrimitive,
RadioPrimitive,
} from "@/registry/default/ui/radio-group";
const itemClassName = segmentedControlItemVariants({
className: "grow",
size: "lg",
state: "checked",
});
export default function Particle() {
return (
<RadioGroupPrimitive
aria-label="Billing period"
className={segmentedControlRootClassName}
defaultValue="monthly"
>
<RadioPrimitive.Root className={itemClassName} value="monthly">
Monthly
</RadioPrimitive.Root>
<RadioPrimitive.Root className={itemClassName} value="yearly">
Yearly
</RadioPrimitive.Root>
</RadioGroupPrimitive>
);
}






















