Tooltip
Tooltip can be used for a little info hint on hover or focus.
View SourceUsage
css
@import "winduum/src/components/tooltip/index.css" layer(components);
html
<div class="x-tooltip bottom" aria-label="I am tooltip">
<button class="x-button">Tooltip</button>
</div>
vue
<script setup>
import { Tooltip } from '@/components/tooltip'
import { Button } from '@/components/button'
</script>
<template>
<Tooltip aria-label="I am a tooltip!">
<Button>Tooltip</Button>
</Tooltip>
</template>
Variants
Tokens
top
bottom
left
right
Installation
Follow instructions for individual framework usage below
Examples
Basic
html
<div class="x-tooltip bottom" aria-label="I am tooltip">
<button class="x-button">Tooltip</button>
</div>