<x-tooltip content="Settings"> <x-button icon="o-cog-6-tooth" /></x-tooltip>
tooltip
prop into a button component directly.
<x-button tooltip="Settings" icon="o-cog-6-tooth" />
<x-tooltip> <x-button icon="o-cog-6-tooth" icon-variant="outline" /> <x-tooltip.content> Settings </x-tooltip.content></x-tooltip>
toggleable
prop.
For US businesses, enter your 9-digit Employer Identification Number (EIN) without hyphens.
For European companies, enter your VAT number including the country prefix (e.g., DE123456789).
<x-heading class="flex items-center gap-2"> Tax identification number <x-tooltip toggleable position="bottom"> <x-button icon="o-information-circle" size="sm" variant="ghost" /> <x-tooltip.content class="max-w-[20rem] space-y-2"> <p>For US businesses, enter your 9-digit Employer Identification Number (EIN) without hyphens.</p> <p>For European companies, enter your VAT number including the country prefix (e.g., DE123456789).</p> </x-tooltip.content> </x-tooltip></x-heading>
position
props, the default value is
top
.
top
,
top-start
,
top-end
.
bottom
,
bottom-start
,
bottom-end
.
left
,
left-start
,
left-end
.
right
,
right-start
,
right-end
.
<x-tooltip content="Settings" position="top">...</x-tooltip><x-tooltip content="Settings" position="bottom">...</x-tooltip><x-tooltip content="Settings" position="left">...</x-tooltip><x-tooltip content="Settings" position="right">...</x-tooltip>
tooltip-position
prop into a button component directly.
<x-button tooltip="Settings" tooltip-position="top" icon="o-cog-6-tooth" />
offset
props. These properties accept values
in pixels, the default value is
6
.
<x-tooltip content="Settings" offset="6">...</x-tooltip><x-tooltip content="Settings" offset="12">...</x-tooltip><x-tooltip content="Settings" offset="18">...</x-tooltip><x-tooltip content="Settings" offset="24">...</x-tooltip>
tooltip-offset
prop into a button component directly.
<x-button tooltip="Settings" tooltip-offset="12" icon="o-cog-6-tooth" />