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
Name | Description | Type | Default | Version |
---|---|---|---|---|
content | display content, can be overridden by slot | string | ||
placement | position of Tooltip | top-left | top | top-right | left | right | bottom-left | bottom | bottom-right | top | |
maxWidth | Maximum width, if content exceeds, wrap | number | 500 | |
space | Tooltip The distance between the component and the starting content | number | 8 |