HintProps
Extends
PropsWithChildren
Properties
autoStart?
optionalautoStart:boolean
Whether to start the hint automatically or not (if false, you can start the hint by calling the start method)
Default
true
beacon?
optionalbeacon:"fill"|ReactElement<unknown,string|JSXElementConstructor<any>> |"outline"
The beacon to display (can be fill, outline or a ReactElement)
Default
outline
beaconProps?
optionalbeaconProps:Omit<FloatingProps,"open"|"initialOpen"|"setOpen"|"floatingComponent"|"hoverProps"|"focusProps"|"roleProps"|"dismissProps"|"clickProps"> &object
Props for floating beacon (see FloatingProps)
Type declaration
autoOffset?
optionalautoOffset:boolean
Default
autoOffset: true
children?
optionalchildren:ReactNode
Inherited from
PropsWithChildren.children
hit?
optionalhit:number|"always"
Number of times to show the hint (if set to always, it will show the hint on each page load)
Default
always
popover
popover:
string|ReactElement<unknown,string|JSXElementConstructor<any>>
The popover to display when the beacon is active (can be a string or a JSX element)
popoverProps?
optionalpopoverProps:Omit<FloatingProps,"initialOpen"|"floatingComponent">
Props for floating popover (see FloatingProps)
Default
arrow: {enabled: true, width: 10, height: 5, fill: COLORS.POPOVER}, hoverProps: {enabled: false}
uniqueKey?
optionaluniqueKey:string|number
The unique key of the hint (used to store the hint state in the local storage) (if not provided, the hint create that from the popover prop)