Skip to main content

BwTooltip | bw-tooltip

Overview

Tooltip is an overlay that displays a message when hovering over an element. It differs from a popover in that it is not interactive.

Usage

Basic

Show Tooltip
<bw-tooltip content="Here's a tooltip">
<bw-button>Show Tooltip</bw-button>
</bw-tooltip>

Properties

PropertyAttributeDescriptionTypeDefault
contentcontentThe content of the tooltipstringundefined
offsetXoffset-xHorizontal offset used when auto positioning the popover contentnumber0
offsetYoffset-yVertical offset used when auto positioning the popover contentnumber10

Slots

SlotDescription
The trigger for the tooltip goes in the default slot
"content"The content of the tooltip

CSS Custom Properties

NameDescription
--backgroundThe background color of the tooltip.
--borderThe border of the tooltip.
--colorThe color of the tooltip.
--paddingThe padding of the tooltip.
--radiusThe radius of the tooltip.

Dependencies

Used by

Graph


© 2025 United Systems & Software - All Rights Reserved.