Tooltip
Use one focusable trigger. Essential instructions should remain visible elsewhere.
Preview
Usage
<script setup lang="ts">
import { FzTooltip } from '@chrisdalbano/forza-ui'
</script>
<template>
<FzTooltip text="Tune your build"
><button type="button">Settings</button></FzTooltip
>
</template>Import the shared stylesheet once and wrap your app in .fz-theme. See installation.
Props
| Name | Type | Required | Default |
|---|---|---|---|
text | string | Yes | None |
delay | number | undefined | No | 250 |
Events and state
hover/focus managed by primitive
Slots
default: one focusable trigger
Add from source
sh
forza add tooltipSet up the CLI first. Generated API tables come from the Vue source, using Vue Language Tools.