Skip to content

Commit 0e0586e

Browse files
committed
Segmented control accepts react node
1 parent dddef81 commit 0e0586e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/webapp/app/components/primitives/SegmentedControl.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { RadioGroup } from "@headlessui/react";
22
import { motion } from "framer-motion";
3+
import type { ReactNode } from "react";
34
import { cn } from "~/utils/cn";
45

56
const sizes = {
@@ -63,7 +64,7 @@ const variants = {
6364
type VariantType = keyof typeof variants;
6465

6566
type Options = {
66-
label: string;
67+
label: ReactNode;
6768
value: string;
6869
};
6970

0 commit comments

Comments
 (0)