# UiTooltip

## Usage

```html
<template>
  <UiTooltip>
    <template #activator>
      <button>Target</button>
    </template>
    Tooltip Content
  </UiTooltip>
</template>

<script setup>
import UiTooltip from "@dpa-id-components/dpa-shared-components/components/UiTooltip/UiTooltip.vue";
</script>
```

The `class` attribute is forwarded to the component's root element, so e.g. `<UiTooltip class="mt-4">` styles the outer wrapper (useful for layout or positioning). The root element has `inline-block` and `align-middle` as default classes, which can be overridden via tailwind-merge.

All other attributes (`aria-*`, `data-*`, event listeners, etc.) are forwarded to the inner tooltip content element via `v-bind="$attrs"`.

To style the tooltip content itself, wrap the slot content in your own element with the desired classes.
