Tooltips
Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-bs-attributes for local title storage.
This component is still under development. Please only use the snippets provided below to avoid breaking changes.
View the official docs here
Examples
Basic
No components
API
Tooltip
import { Tooltip } from 'astro-bootstrap'
Name | Type | Default | Description |
---|---|---|---|
title required | string | Tooltip title | |
Placement | string | top | Tooltip position - top, bottom, left or right |
Animation | boolean | true | Disable/Enable animation |
Delay | number | Delay in ms to show tooltip | |
html | boolean | false | Enable html in tooltip |
Trigger | string | Mouse event which triggers tooltip. click, hover, focus or a combination separated by spaces. | |
customClass | string | Add a css class to the tooltip |