mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-05 09:36:37 +08:00
66de566a00
* fix(frontend): left-align announcement logo in homepage banner * fix(frontend): keep multiselect panels floating and preserve summaries * fix(frontend): rebalance config card header spacing * fix(frontend): normalize formatting and fix multiselect modal behavior * fix(frontend): restore config divider spacing on desktop
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import * as React from "react";
|
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
import { CircleIcon } from "lucide-react";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
function RadioGroup({
|
|
className,
|
|
...props
|
|
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {
|
|
return (
|
|
<RadioGroupPrimitive.Root
|
|
className={cn("grid gap-2", className)}
|
|
data-slot="radio-group"
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function RadioGroupItem({
|
|
className,
|
|
...props
|
|
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {
|
|
return (
|
|
<RadioGroupPrimitive.Item
|
|
className={cn(
|
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
className,
|
|
)}
|
|
data-slot="radio-group-item"
|
|
{...props}
|
|
>
|
|
<RadioGroupPrimitive.Indicator
|
|
className="flex items-center justify-center"
|
|
data-slot="radio-group-indicator"
|
|
>
|
|
<CircleIcon className="h-2.5 w-2.5 fill-current text-current" />
|
|
</RadioGroupPrimitive.Indicator>
|
|
</RadioGroupPrimitive.Item>
|
|
);
|
|
}
|
|
|
|
export { RadioGroup, RadioGroupItem };
|