HoverCardContextValue
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:57
Properties
Section titled “Properties”contentRef
Section titled “contentRef”contentRef:
RefObject<HTMLDivElement|null>
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:62
floatingContext
Section titled “floatingContext”floatingContext:
FloatingContext
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:65
floatingRefs
Section titled “floatingRefs”floatingRefs:
object&ExtendedRefs<ReferenceType>
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:63
Type Declaration
Section titled “Type Declaration”floating
Section titled “floating”floating:
MutableRefObject<HTMLElement|null>
A React ref to the floating element.
reference
Section titled “reference”reference:
MutableRefObject<ReferenceType|null>
A React ref to the reference element.
setFloating
Section titled “setFloating”setFloating: (
node) =>void
A callback to set the floating element (reactive).
Parameters
Section titled “Parameters”HTMLElement | null
Returns
Section titled “Returns”void
setReference
Section titled “setReference”setReference: (
node) =>void
A callback to set the reference element (reactive).
Parameters
Section titled “Parameters”ReferenceType | null
Returns
Section titled “Returns”void
floatingStyles
Section titled “floatingStyles”floatingStyles:
CSSProperties
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:64
getFloatingProps
Section titled “getFloatingProps”getFloatingProps: (
props?) =>Record<string,unknown>
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:69
Parameters
Section titled “Parameters”props?
Section titled “props?”HTMLProps<HTMLElement>
Returns
Section titled “Returns”Record<string, unknown>
getReferenceProps
Section titled “getReferenceProps”getReferenceProps: (
props?) =>Record<string,unknown>
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:66
Parameters
Section titled “Parameters”props?
Section titled “props?”HTMLProps<HTMLElement>
Returns
Section titled “Returns”Record<string, unknown>
hoverCardId
Section titled “hoverCardId”hoverCardId:
string
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:59
isOpen
Section titled “isOpen”isOpen:
boolean
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:58
portal
Section titled “portal”portal:
boolean
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:60
triggerRef
Section titled “triggerRef”triggerRef:
RefObject<HTMLElement|null>
Defined in: src/components/primitives/HoverCard/HoverCard.types.ts:61