2.2.1 • Published 2 years ago
@cthacker/overlaytriggerinject v2.2.1
React-Bootstrap OverlayTrigger Wrapper.
Benefits:
- Less boilerplate code
- More customization options- Display while hovering over tooltip customization
- Override props without providing boilerplate function
 
- Compatible with NextJS 13+
Specifications
- Language- Typescript
 
- Framework- React >18+
 
Props Descriptions
- delayOverlayDelay:- { hide: number, show: number }- The applied react-bootstrapproperty for the OverlayTrigger component- {{ hide: <ms>, show: <ms> }}
 
 
- The applied 
- displayWhileHoverboolean- Custom prop, allows for the tooltip to stay visible while the user is hovering over it, and then disappears when the tooltip loses focus.
 
- onToggle- (_nextShow: boolean) => voidinherited from react-bootstrap's OverlayTrigger onToggle callback specification- _nextShow: The next boolean value that will be applied to the state of the component- _nextShow = true -->the component is "showing"
 
- placementPlacement: AutoPlacement | BasePlacement | VariantPlacement inherited from react-bootstrap's OverlayTrigger Placement type specification, basically an string enum- Controls the placement of the tooltip relative to it's wrapped children
 
- showboolean- The most important value, controls whether the Tooltip is shown or not on the screen, or inserted into the DOM.- show = true --> tooltip is showing
- show = false --> tooltip is not showing
 
 
- The most important value, controls whether the Tooltip is shown or not on the screen, or inserted into the DOM.
- titlestring | ReactNode- The contents of the tooltip, fully customizable, can either be a raw string, or a complex ReactNode component
 
- triggerOverlayTriggerType | OverlayTriggerType[] inherited from react-bootstrap's OverlayTrigger specifications