Template
non ai theme
This commit is contained in:
1 parent
9d444cc0ec
commit
61df5e3dcc
28 files changed
+3347
-448
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { cn } from '../../utils/cn'
|
||||
|
||||
type TooltipProps = {
|
||||
content: ReactNode
|
||||
children: ReactNode
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function Tooltip({ content, children, className }: TooltipProps) {
|
||||
return (
|
||||
<span className={cn('tooltip-wrapper', className)} tabIndex={0}>
|
||||
{children}
|
||||
<span className="tooltip-box" role="tooltip">
|
||||
{content}
|
||||
</span>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user