All Options

Below is a table of all the options you can supply.

a11ybooleantrueShort for accessibility - ensures the reference element can receive focus so the tooltip can be activated by keyboard navigation by adding tabindex="0" to the reference element.
animateFillbooleantrueDetermines if the background fill color should be animated. Disabled if arrow: true.
allowHTMLbooleantrueDetermines if the tippy can have HTML content rendered inside of it. Make sure you are sanitizing any user data if rendering HTML to prevent XSS attacks.
animationstring"shift-away"The type of transition animation. Possible values: "shift-away", "shift-toward", "fade", "scale", "perspective"
appendToElement, Functiondocument.bodyThe element to append the tippy to. You can define a function that takes the reference element as an argument and returns a new element.
aria (v3.4)string"describedby"The aria-* attribute applied to the reference element. Use either "describedby" or "labelledby". Use a falsy value null / false to prevent the attribute from being added.
arrowbooleanfalseDetermines if an arrow should be added to the tippy pointing toward the reference element.
arrowTypestring"sharp"Determines the arrow type. Possible values: "sharp", "round"
arrowTransform (deprecated)string""CSS transform applied to the arrow. Due to flipping, it is dynamic – supply a string that would give the desired transform for the "top" placement.
autoFocus (v3.4)booleantrueDetermines if interactive poppers should be automatically focused. To control focus manually, set this to false.
boundary (v3.4)string, HTMLElement"scrollParent"The boundary that Popper.js' preventOverflow modifier adheres to. Possible values: "scrollParent", "window", "viewport", or an HTMLElement.
contentstring, Element""The content of the tippy.
delaynumber, [show, hide][0, 20]Delay in ms once a trigger event is fired before a tippy shows or hides. Specifying a number means both the show and hide delays are the same. Use null in the array to use the default value.
durationnumber, [show, hide][275, 250]Duration of the CSS transition animation in ms. Specifying a number means both the show and hide delays are the same. Use null in the array to use the default value.
distancenumber10How far in pixels the tippy element is from the reference element. Only applies to a single axis and not to the parent popper element, see the offset option.
flipbooleantrueDetermines if the tippy flips so that it is placed within the viewport as best it can be if there is not enough room. To prevent flips from transitioning, set the updateDuration option to 0.
flipBehaviorstring, string[]"flip"Determines the order of flipping, i.e. which placements to prefer if a certain placement cannot be used. Use an array such as ["bottom", "left"] to prefer the "left" placement if "bottom" is unavailable, instead of "top".
followCursorboolean, stringfalseDetermines if the tippy follows the user's mouse cursor while showing. Use the strings "vertical" or "horizontal" to only follow the cursor on a single axis. Use "initial" to place the tippy at the initial cursor position upon show, but prevent following it.
hideOnClickboolean, stringtrueDetermines if the tippy should hide if a click event was fired outside of it (i.e. clicking on the reference or the body). For click-triggered tippys, using false will prevent the tippy from ever hiding once it is showing. To prevent clicks outside of the tippy from hiding it but still allow it to be toggled, use the string "toggle".
inertiabooleanfalseDetermines if an inertial slingshot effect is applied to the CSS transition-timing-function.
interactivebooleanfalseDetermines if the tippy is interactive, i.e. it can be hovered over or clicked without hiding.
interactiveBordernumber2Determines the size in pixels of the invisible border around a tippy which will prevent it from closing if the cursor left the element.
interactiveDebouncenumber0Debounces the internal onMouseMove handler which determines when an interactive tippy should hide.
lazybooleantrueDetermines if the positioning engine (powered by Popper.js) is created lazily. That is, it's only created when necessary upon showing the tippy for the first time. If you need to access the popperInstance synchronously after creation, set this to false. Please note that this decreases performance considerably.
livePlacementbooleantrueDetermines if the placement of the tippy should update on scroll.
maxWidthnumber, string""Determines the maximum width of the tippy - use a number for pixels, or a string to add units such as rem. In CSS, it's defined as 350px by default. This option applies the width to the style attribute of the tippy element.
multiplebooleanfalseDetermines if the reference element can have multiple tippys applied to it.
offsetnumber, string0, stringDetermines the offset of the tippy element. Unlike distance, it can work with both the x and y axes, however, the interactive option may break.
onHiddenFunctionnoopLifecycle function invoked when the tippy has fully transitioned out.
onHideFunctionnoopLifecycle function invoked when the tippy begins to transition out.
onMountFunctionnoopLifecycle function invoked when the tippy has been mounted to the DOM.
onShowFunctionnoopLifecycle function invoked when the tippy begins to transition in.
onShownFunctionnoopLifecycle function invoked when the tippy has fully transitioned in.
performancebooleanfalseDetermines if data-tippy-* attributes should be disabled to increase init performance.
placementstring"top"Positions the tippy relative to its reference element. Use the suffix -start or -end to shift the tippy to the start or end of the reference element, instead of centering it. For example, top-start or left-end.
popperOptionsobject{}Specify custom Popper.js options. See the Popper.js documentation for more.
shouldPopperHideOnBlurFunction() => trueA function that takes the focusout event object and returns a boolean to determine if the popper element should hide if it's blurred (applies only if interactive). If the popper element is blurred (i.e. no elements within it are in focus), the popper is hidden. However, there are cases in which you may need to keep it visible even when not in focus.
showOnInitbooleanfalseDetermines if the tippy will be shown immediately once the instance is created. If using on page load, use sticky: true because the reference element can move around while the layout gets built by the browser after initialization (unless the layout is guaranteed to be static).
sizestring"regular"Determines the size of the tippy, defined in CSS. Possible values: "small", "regular", "large"
stickybooleanfalseEnsures the tippy stays stuck to its reference element if it moves around while showing. See the updateDuration option to change the transition duration between position updates.
targetstring""CSS selector string used for event delegation. See Event delegation for more information.
themestring"dark"Themes added as classes (each separated by a space) to the tippy element's classList.
touchbooleantrueDetermines if the tippy displays on touch devices.
touchHoldbooleanfalseDetermines trigger behavior on touch devices. Instead of a tap on the reference to show and a tap elsewhere to hide the tippy, the reference must be pressed and held for the tippy to show. Letting go from the screen will hide it. To prevent the mobile context menu from appearing, ensure the element cannot be selected using user-select: none; and/or prevent the default behavior for the contextmenu event.
triggerstring"mouseenter focus"The events (each separated by a space) which cause a tippy to show. Possible values: "mouseenter", "focus", "click", "manual". Use "manual" to only trigger the tippy programmatically.
updateDurationnumber200The transition duration between position updates for the sticky option. Set to 0 to prevent flips from transitioning.
waitFunctionnullA function that, when defined, will wait until you manually invoke the show() method when a tippy is triggered. It takes the tippy instance as the first argument, and the trigger event as the second argument.
zIndexnumber9999Determines the z-index of the tippy.