mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-21 10:21:54 +03:00
2f68b445db
Issue https://github.com/StanGirard/quivr/issues/1908 Demo: https://github.com/StanGirard/quivr/assets/63923024/3be5d58c-4052-4c06-8434-920d4db0365e
23 lines
614 B
TypeScript
23 lines
614 B
TypeScript
import { forwardRef } from "react";
|
|
|
|
import { TabsTrigger } from "@/lib/components/ui/Tabs";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export const StyledTabsTrigger = forwardRef<
|
|
React.ElementRef<typeof TabsTrigger>,
|
|
React.ComponentPropsWithoutRef<typeof TabsTrigger>
|
|
>(({ className, ...props }, ref) => (
|
|
<TabsTrigger
|
|
ref={ref}
|
|
className={cn(
|
|
"capitalize font-normal",
|
|
"data-[state=active]:shadow-none",
|
|
"data-[state=active]:text-primary",
|
|
"data-[state=active]:font-semibold",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
));
|
|
StyledTabsTrigger.displayName = TabsTrigger.displayName;
|