Tooltip

Reveal brief contextual help on hover, focus, or click.

Tooltip

Default

Easily add a tooltip with the s-tooltip component, the content within the default slot is the parent element of the tooltip and the one that triggers to show or hide it

The tooltip slot is the content inside the tooltip

Placement

Without placement, Tooltip prefers the top and automatically chooses another direction when visible space is insufficient. Scrolling and resizing recalculate the position. Set placement to choose an initial direction, including -start and -end alignment variants. Set :flip="false" to prevent direction changes.

Color

Use the color prop to change the base color of a component and supported child elements. See theme configuration for color and theme details.

Supported values:

  • primary
  • success
  • danger
  • warning
  • dark
  • RGB
  • HEX

Border

Change the style of the tooltip by adding a border and changing the color of the background with the border or border-thick property

Now the color property would change the color of the border

Square

Change the border-radius of the tooltip so that it is completely a rectangle

Circle

Change the border-radius of the tooltip to make it more circular

This property only applies when the tooltip has less than one line of text.

Shadow

Change the style of the tooltip to have a shadow and the background color

Not Arrow

In some cases you may need to remove the arrow from the tooltip for this you can use the not-arrow property

Loading

Add an animation and loading style to the tooltip

Content

We create the tooltip component in such a way that you have a lot of freedom to add anything and create all kinds of interface inside it.

API

PROPS

Property
Type
Values
Description
default
Example
More
append-to
String | HTMLElement
positioning and visual options
Configure mounting, appearance, offset, collision shift and arrow visibility.
—
effect
String
positioning and visual options
Configure mounting, appearance, offset, collision shift and arrow visibility.
—
offset
Number
positioning and visual options
Configure mounting, appearance, offset, collision shift and arrow visibility.
—
shape
String
positioning and visual options
Configure mounting, appearance, offset, collision shift and arrow visibility.
—
shift
Boolean | Object
positioning and visual options
Configure mounting, appearance, offset, collision shift and arrow visibility.
—
show-arrow
Boolean
positioning and visual options
Configure mounting, appearance, offset, collision shift and arrow visibility.
—
v-model
Boolean
truefalse
Determination if the component is active (visible).
false
color
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
color of the tooltip.
text
placement
String
top | top-start | top-end | bottom | bottom-start | bottom-end | left | left-start | left-end | right | right-start | right-end
Preferred direction. When omitted, tries top, bottom, right and left according to visible space; when none fits, chooses the least overflowing side.
—
flip
Boolean | Object
true | false | FlipOptions
Enable collision-driven direction changes or configure fallback placements. false keeps the preferred direction.
{}
border
Boolean
truefalse
Change the style of the tooltip by adding a border.
primary
border-thick
Boolean
truefalse
Change the style of the tooltip by adding a thick border only at the arrow position.
false
square
Boolean
triefalse
Determine if the tooltip is rectangular without border-radius.
false
circle
Boolean
truefalse
Change the border radius to 20px so that if it is a single line of text the corners are circular.
false
shadow
Boolean
truefalse
Change the style of the tooltip by adding a shadow and changing the background.
false
not-arrow
Boolean
truefalse
Remove the arrow from the tooltip.
false
not-hover
Boolean
truefalse
The default tooltip is generated by doing hover on the parent element, that functionality is removed and no longer appears or disappears when doing hover.
false
interactivity
Boolean
truefalse
Determine if the tooltip is interactive and makes it possible to click without automatically hiding.
false
loading
Boolean
truefalse
Determine if the tooltip has a loading style and animation.
false

SLOTS

Slot
Scope
Description
default
Example
More
default
null
Add the trigger element of the tooltip.
—
content
null
It is the content that will go inside the tooltip.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied