block selector

This commit is contained in:
StyleZhang
2024-03-08 18:09:55 +08:00
parent 1adec7ab51
commit d79b686992
7 changed files with 150 additions and 54 deletions

View File

@ -14,6 +14,7 @@ type TooltipProps = {
position?: 'top' | 'right' | 'bottom' | 'left'
clickable?: boolean
children: React.ReactNode
noArrow?: boolean
}
const Tooltip: FC<TooltipProps> = ({
@ -25,6 +26,7 @@ const Tooltip: FC<TooltipProps> = ({
htmlContent,
className,
clickable,
noArrow,
}) => {
return (
<div className='tooltip-container'>
@ -39,6 +41,7 @@ const Tooltip: FC<TooltipProps> = ({
place={position}
clickable={clickable}
isOpen={disabled ? false : undefined}
noArrow={noArrow}
>
{htmlContent && htmlContent}
</ReactTooltip>