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

Code copied

Placement

Change the placement of the tooltip with the properties

  • top
  • bottom Default
  • left
  • right
Code copied

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
Code copied

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

Code copied

Square

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

Code copied

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.

Code copied

Shadow

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

Code copied

Not Arrow

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

Code copied

Loading

Add an animation and loading style to the tooltip

Code copied

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.

Code copied

API

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
append-to / effect / offset / shape / shift / show-arrowString | HTMLElement / String / Number / String / Boolean | Object / Booleanpositioning and visual optionsConfigure mounting, appearance, offset, collision shift and arrow visibility.-
v-modelBooleantruefalseDetermination if the component is active (visible).
colorStringTheme colorsRGBHEXcolor of the tooltip.text
Usage
left, right, bottomBooleantruefalseposition of the tooltip.top
Usage
borderBooleantruefalseChange the style of the tooltip by adding a border.primary
Usage
border-thickBooleantruefalseChange the style of the tooltip by adding a thick border only at the arrow position.
Usage
squareBooleantriefalseDetermine if the tooltip is rectangular without border-radius.
Usage
circleBooleantruefalseChange the border radius to 20px so that if it is a single line of text the corners are circular.
Usage
shadowBooleantruefalseChange the style of the tooltip by adding a shadow and changing the background.
Usage
not-arrowBooleantruefalseRemove the arrow from the tooltip.
Usage
not-hoverBooleantruefalseThe default tooltip is generated by doing hover on the parent element, that functionality is removed and no longer appears or disappears when doing hover.
Usage
interactivityBooleantruefalseDetermine if the tooltip is interactive and makes it possible to click without automatically hiding.
Usage
loadingBooleantruefalseDetermine if the tooltip has a loading style and animation.
Usage
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
defaultslotAdd the trigger element of the tooltip.
Usage
contentslotIt is the content that will go inside the tooltip.
Usage
No matching data
Last Updated: 2026-08-17, 08:33:54