Skip to content

Tooltip

Basic usage

Use attribute content to set the display content when hover. The attribute placement determines the position of the tooltip. Its value is [orientation] with four orientations top, left, right, bottom.

More Content

Use attribute maxWidth to set the automatic line wrap width of the Tooltip .

API

Options

NameDescriptionTypeDefaultVersion
contentdisplay content, can be overridden by slotstring
placementposition of Tooltiptop-left | top | top-right | left | right | bottom-left | bottom | bottom-righttop
maxWidthMaximum width, if content exceeds, wrapnumber500
spaceTooltip The distance between the component and the starting contentnumber8

Contributors

lazy

ChangeLog

c0ae5 - fix: 修正类型 on 11/20/2023
9f682 - feat: tooltip on 11/3/2023

Released under the MIT License.