Skip to content

Tooltip

Tooltips show contextual help or information about specific components when a user hovers or focuses on it.

Tooltip

A tooltip is a brief, informative message that appears when a user interacts with an element.

Import

js
import { MpTooltip } from '@mekari/pixel3'

Playground

API

MpTooltip

Props
Events
Slots
NameTypeDefault
label
Label of tooltip.
string -
id
Id of tooltip.
string -
placement
Placement of tooltip.
"top" | "left" | "right" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"top
is-default-open
If true, tooltip will be open by default.
booleanfalse
is-manual
If true, tooltip show/hide will be handle manual with `isOpen` prop.
booleanfalse
is-open
If true/false, tooltip will show/hide. Only active if `is-manual` prop is true.
booleanfalse
show-delay
Show delay of tooltip in millisecond.
number0
hide-delay
Hide delay of tooltip in millisecond.
number0
use-portal
If true, tooltip is rendered with portal.
booleanfalse
is-keep-alive
If true, tooltip will be hidden using CSS instead of destroying DOM.
booleanfalse

Usage

With Icon

With Any Label

With Portal

With Customize

With Manual