Overlays
A set of components for positioning beautiful overlays, tooltips, popovers, and anything else you need.
This component is used to power Tooltips and Popovers.
This is a pass through component from React-Bootstrap.
See React-Bootstrap for additional documentation.
Basic usage
- children
nodeRequired RequiredSpecifies the content of the
Overlay. - container
elementTypeRequired |funcRequired RequiredA component instance, DOM node, or function that returns either. The overlay will be positioned in relation to the target.
 - onEnter
funcRequiredCallback fired before the
Overlaytransitions in. - onEntered
funcRequiredCallback fired after the
Overlayfinishes transitioning in. - onEntering
funcRequiredCallback fired as the
Overlaybegins to transition in. - onExit
funcRequiredCallback fired right before the
Overlaytransitions out - onExited
funcRequiredCallback fired after the
Overlayfinishes transitioning out. - onExiting
funcRequiredCallback fired as the Overlay begins to transition out.
 - onHide
funcRequiredA callback invoked by the overlay when it wishes to be hidden. Required if
rootCloseis specified. - placement
enumRequired'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start'Default'top'The placement of the
Overlayin relation to it's target. - popperConfig
shapeRequired {}Default{}A set of popper options and props passed directly to
Popper. - rootClose
boolRequiredDefaultfalseSpecify whether the overlay should trigger
onHidewhen the user clicks outside the overlay. - rootCloseEvent
enumRequired'click' | 'mousedown'Specify event for triggering a “root close” toggle.
 - show
boolRequiredDefaultfalseSet the visibility of the
Overlay. - target
elementTypeRequired |funcRequired RequiredThe visibility of the
Overlay.showis a controlled prop so should be paired withonToggleto avoid breaking user interactions.Manually toggling show does not wait for delay to change the visibility.
Controls
onToggle. - transition
funcRequiredDefaultFadeAnimate the entering and exiting of the Overlay.
truewill use the<Fade>transition, or a custom react-transition-group<Transition>component can be provided. 
- children
elementRequired |funcRequired Required RequiredSpecifies the content of the
OverlayTrigger. - overlay
elementRequired |funcRequired Required RequiredAn element or text to overlay next to the target.
 - defaultShow
boolRequiredDefaultfalseThe initial visibility state of the
Overlay. - delay
numberRequired |shapeRequired {} RequiredA millisecond delay amount to show and hide the
Overlayonce triggered. - flip
boolRequiredThe initial flip state of the
Overlay. - onHide
nullRequired - onToggle
funcRequiredA callback that fires when the user triggers a change in tooltip visibility.
onToggleis called with the desired next show, and generally should be passed back to theshowprop.onTogglefires after the configureddelay.Controls
show. - placement
enumRequired'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start'The placement of the
Overlayin relation to it's target. - popperConfig
shapeRequired {}Default{}A
Popper.jsconfig object passed to the the underlying popper instance. - show
boolRequiredThe visibility of the
Overlay.showis a controlled prop so should be paired withonToggleto avoid breaking user interactions.Manually toggling show does not wait for delay to change the visibility.
Controls
onToggle. - target
nullRequired - trigger
triggerTypeRequired |triggerTypeRequired[]Required RequiredDefault['hover', 'focus']Specify which action or actions trigger
Overlayvisibility.