Components
Tooltip

Tooltip

Import

import { VKTooltip } from "@vivakits/react-components";

Content

The Tooltip component can display any content passed to it using the content prop.

Position

The Tooltip component can be positioned in various ways using the position prop.

Responsive

The Tooltip component can be made responsive using the responsive prop.

Caret

The Tooltip component allows you to toggle the caret on and off using the caret prop.

Close Button

The Tooltip component can display a close button using the closeButton prop.

Max width

The Tooltip component can have a maximum width using the maxWidth prop. The tooltip will not resize beyond this width automatically.

Custom Class

You can customize the Tooltip using the className, caretColor and wrapperClassName prop.

API Reference

AttributeTypeDescriptionDefault
childrenDisplays tooltip triggering text -
wrapperClassNamestringClassname for the popconfirm trigger -
contentstring, React.nodeContent of the tooltip -
positiontoptopLefttopRightleftbottombottomLeftbottombottomRightPosition of the tooltiptop
responsivebooleanWhether the tooltip is responsivefalse
caretbooleanWhether to show the carettrue
closeButtonbooleanWhether to show the close buttonfalse
maxWidthstringMaximum width of the tooltip 250px
classNamestringClassname for the tooltip -
caretColorstringColor of the caret -