chore: allow tooltip store overrides
This commit is contained in:
@@ -1,10 +1,19 @@
|
|||||||
import { classNames } from '@standardnotes/snjs'
|
import { classNames } from '@standardnotes/snjs'
|
||||||
import { ReactNode } from 'react'
|
import { ReactNode } from 'react'
|
||||||
import { Tooltip, TooltipAnchor, useTooltipStore } from '@ariakit/react'
|
import { Tooltip, TooltipAnchor, TooltipStoreProps, useTooltipStore } from '@ariakit/react'
|
||||||
import { Slot } from '@radix-ui/react-slot'
|
import { Slot } from '@radix-ui/react-slot'
|
||||||
|
|
||||||
const StyledTooltip = ({ children, className, label }: { children: ReactNode; className?: string; label: string }) => {
|
const StyledTooltip = ({
|
||||||
const tooltip = useTooltipStore()
|
children,
|
||||||
|
className,
|
||||||
|
label,
|
||||||
|
...props
|
||||||
|
}: {
|
||||||
|
children: ReactNode
|
||||||
|
className?: string
|
||||||
|
label: string
|
||||||
|
} & Partial<TooltipStoreProps>) => {
|
||||||
|
const tooltip = useTooltipStore(props)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user