## Tooltip styles
You can use choose between dark and light version styles for the tooltip component by changing the utility classes from Tailwind CSS and by applying the `tooltip-light` or `tooltip-dark` attribute.
<fwb-tooltip-example-style />
```vue
<template>
<fwb-tooltip theme="light">
<template #trigger>
<fwb-button>
Light Tooltip
</fwb-button>
</template>
<template #content>
Tooltip content
</template>
</fwb-tooltip>
<fwb-tooltip theme="dark">
<template #trigger>
<fwb-button>
Dark Tooltip
</fwb-button>
</template>
<template #content>
Tooltip content
</template>
</fwb-tooltip>
</template>
<script setup>
import { FwbButton, FwbTooltip } from 'flowbite-vue'
</script>
The positioning of the tooltip element relative to the triggering element (eg. button, link) can be set using placement attribute with top
, top-start
, top-end
, bottom
, bottom-start
, bottom-end
, right
, right-start
, right-end
, left
, left-start
, left-end
, auto
, auto-start
, auto-end
.
The default value is: top
## Inside of Button Group
You can use the tooltip component inside of the button group component.
<fwb-tooltip-example-group />
```vue
<template>
<fwb-button-group>
<fwb-button>
Normal Button
</fwb-button>
<fwb-tooltip>
<template #trigger>
<fwb-button>
Button With Tooltip
</fwb-button>
</template>
<template #content>
Tooltip content
</template>
</fwb-tooltip>
</fwb-button-group>
</template>
<script setup>
import { FwbButton, FwbButtonGroup, FwbTooltip } from '../../../../src/index'
</script>
You can choose the triggering event by using the hover
or click
attributes to choose whether you want to show the tooltip when hovering or clicking on the element. By default this option is set to click
.