Tooltip
# FxTooltip
Commonly used to display hint information when hovering.
# Attributes
| Parameter | Description | Type | Options | Default |
|---|---|---|---|---|
| effect | Default theme | String | dark/light | dark |
| content | Display content, can also be passed via slot#content | String | — | — |
| placement | Tooltip position | String | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
| value / v-model | Visibility state | Boolean | — | false |
| disabled | Whether Tooltip is disabled | Boolean | — | false |
| offset | Position offset | Number | — | 0 |
| transition | Animation effect | String | — | el-fade-in-linear |
| visible-arrow | Whether to show Tooltip arrow. More parameters see Vue-popper (opens new window) | Boolean | — | true |
| popper-options | Parameters for popper.js (opens new window) | Object | Refer to popper.js (opens new window) documentation | { boundariesElement: 'body', gpuAcceleration: false } |
| open-delay | Delay before showing (ms) | Number | — | 0 |
| manual | Manual control mode. When true, mouseenter/mouseleave won't trigger | Boolean | — | false |
| popper-class | Custom class name for Tooltip's popper | String | — | — |
| enterable | Whether mouse can enter tooltip | Boolean | — | true |
| hide-after | Auto-hide delay after appearing (ms). 0 means no auto-hide | number | — | 0 |
| tabindex | tabindex (opens new window) for Tooltip component | number | — | 0 |
# Basic Usage
We provide 9 different placement options. Refer to the complete example below to understand and choose your preferred effect.
# Theme
Tooltip provides two themes: dark and light.
# Rich Content
Display multi-line text or formatted content.
Second line
# Advanced Usage
Additional properties for better customization:
transition customizes show/hide animation (default: fade-in-linear).
Set disabled to true to disable tooltip functionality.
This component extends Vue-popper (opens new window), allowing any Vue-popper configurable fields. Refer to API documentation for complete capabilities.
:::tip
router-link isn't supported inside tooltip - use vm.$router.push instead.
Disabled form elements aren't supported inside tooltip (see MDN (opens new window)). Wrap disabled elements with a container. :::