feat: add title badge

This commit is contained in:
DIYgod
2023-04-07 03:20:46 +01:00
parent a9c44cdf83
commit ba00fbd672
6 changed files with 74 additions and 3 deletions
+7 -1
View File
@@ -21,6 +21,7 @@ interface Props {
children: JSX.Element
className?: string
inline?: boolean
childrenClassName?: string
}
export const Tooltip = ({
@@ -28,6 +29,7 @@ export const Tooltip = ({
label,
placement = "top",
className,
childrenClassName,
inline,
}: Props) => {
const [open, setOpen] = useState(false)
@@ -56,7 +58,11 @@ export const Tooltip = ({
<div
ref={refs.setReference}
{...getReferenceProps()}
className={cn("items-center", inline ? "inline-flex" : "flex")}
className={cn(
"items-center",
inline ? "inline-flex" : "flex",
childrenClassName,
)}
>
{children}
</div>