Tooltip
Examples
tooltip
tooltip-open
tooltip-bottom
tooltip-left
tooltip-right
with colors
<div
class="text-center grid grid-cols-1 lg:grid-cols-5 my-10 place-items-center gap-y-12"
>
<dv-tooltip content="hello" open placement="top" variant="neutral">
<dv-button variant="neutral">neutral</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="primary">
<dv-button variant="primary">primary</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="secondary">
<dv-button variant="secondary">secondary</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="accent">
<dv-button variant="accent">accent</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="info">
<dv-button variant="info">info</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="success">
<dv-button variant="success">success</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="warning">
<dv-button variant="warning">warning</dv-button>
</dv-tooltip>
<dv-tooltip content="hello" open placement="top" variant="error">
<dv-button variant="error">error</dv-button>
</dv-tooltip>
</div>
vue
Tooltip
Attributes
name | description | type | default |
---|---|---|---|
variant | color type | neutral, primary, secondary, accent, info, success, warning, error | neutral |
Others attributes are same as Popper
.