add hover to all country flags
All checks were successful
Deploy Website / deploy (push) Successful in 5m5s
All checks were successful
Deploy Website / deploy (push) Successful in 5m5s
This commit is contained in:
@ -11,16 +11,21 @@ type Props = {
|
||||
*/
|
||||
display: React.ReactNode;
|
||||
|
||||
/**
|
||||
* Display the trigger as a child element.
|
||||
*/
|
||||
asChild?: boolean;
|
||||
|
||||
/**
|
||||
* Where the tooltip will be displayed
|
||||
*/
|
||||
side?: "top" | "bottom" | "left" | "right";
|
||||
};
|
||||
|
||||
export default function Tooltip({ children, display, side = "top" }: Props) {
|
||||
export default function Tooltip({ children, display, asChild = true, side = "top" }: Props) {
|
||||
return (
|
||||
<ShadCnTooltip>
|
||||
<TooltipTrigger asChild>{children}</TooltipTrigger>
|
||||
<TooltipTrigger asChild={asChild}>{children}</TooltipTrigger>
|
||||
<TooltipContent side={side}>{display}</TooltipContent>
|
||||
</ShadCnTooltip>
|
||||
);
|
||||
|
Reference in New Issue
Block a user