Use the content
slot for complex content with HTML or components. Note it overrides the label
prop.
Tooltip
Display a brief helper text to your user
# Styles
Simple text
I'm never closing
# Custom content
# Multilined
Well, it's not always that brief.
# Toggle
I'm never closing
# API
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the tooltip | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | is-primary |
active | Whether tooltip is active or not | Boolean | — | true |
auto-close | The event(s) that should trigger the tooltip to close | Boolean, Array | Boolean true or false , or an array containing any of escape , outside , inside | true |
label | Tooltip text | String | — | — |
triggers | Tooltip will be triggered by any events | Array | click ,hover ,focus ,contextmenu | ['hover'] |
position | Tooltip position in relation to the element | String | is-top , is-bottom , is-left , is-right | is-top |
always | Tooltip will be always active | Boolean | — | false |
animated | Tooltip will have a little fade animation | Boolean | — | true |
square | Tooltip will be square (not rounded corners) | Boolean | — | false |
dashed | Tooltip slot will have a dashed underline | Boolean | — | false |
multilined | Tooltip will be multilined | Boolean | — | false |
size | Tooltip multiline size (only works for multilined tooltips) | String | is-small , is-medium , is-large | is-medium |
delay | Tooltip delay before it appears (number in ms) | Number | — | 0 |
close-delay | Tooltip delay before it disappears (number in ms) | Number | — | 0 |
append-to-body | Append tooltip content to body (prevents event bubbling) | Boolean | — | false |
# Variables
You can use these variables to customize this component.
Name | Default |
---|---|
$tooltip-arrow-size | 5px |
$tooltip-arrow-margin | 2px |
$tooltip-multiline-sizes |
(
small: 180px,
medium: 240px,
large: 300px
)
|
$tooltip-colors | $colors |
This page is open source. Noticed a typo or something's unclear?