refactor: group some utility classes

This commit is contained in:
rusconn
2023-06-24 19:11:57 +09:00
parent 8d658855ac
commit 3112e80544
8 changed files with 51 additions and 11 deletions

View File

@@ -16,7 +16,11 @@ export const TooltipContent = React.forwardRef<
<TooltipPrimitive.Content
{...{ ref, sideOffset }}
className={cn(
"z-50 overflow-hidden rounded-md border bg-tooltip px-3 py-1.5 text-tooltip-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",
"z-50 overflow-hidden rounded-md border bg-tooltip px-3 py-1.5 text-tooltip-foreground shadow-md animate-in fade-in-50",
"data-[side=bottom]:slide-in-from-top-1",
"data-[side=left]:slide-in-from-right-1",
"data-[side=right]:slide-in-from-left-1",
"data-[side=top]:slide-in-from-bottom-1",
className
)}
{...props}