fuck yeah. daisyui integrated
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
'use client';
|
||||
|
||||
interface TooltipProps {
|
||||
content: string;
|
||||
children: React.ReactNode;
|
||||
position?: 'top' | 'bottom' | 'left' | 'right';
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function Tooltip({ content, children, position = 'top', className = '' }: TooltipProps) {
|
||||
return (
|
||||
<div className={`tooltip tooltip-${position} ${className}`} data-tip={content}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user