View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Tooltip
Accessible non-interactive help for hover and focus triggers with anchored positioning
Hover or focus
Point at the button or reach it with Tab to reveal a short description. Keep essential instructions visible outside the tooltip.
<hw:button variant="outline" tooltip="Save your changes">
Hover or focus
</hw:button>
Rich text and shortcuts
Compose descriptive content with Blade, including a keyboard shortcut. Use Popover instead when the content needs links, buttons or form controls.
<hw:button variant="outline" data-controller="tooltip">
Keyboard shortcut
<hw:tooltip>
Save changes <hw:kbd>⌘S</hw:kbd>
</hw:tooltip>
</hw:button>
Placement
Choose a preferred side with the Button's tooltip-side prop. The tooltip adjusts when there is not enough space.
<div class="flex flex-wrap gap-3">
@foreach (['top', 'right', 'bottom', 'left'] as $side)
<hw:button variant="outline" :tooltip="ucfirst($side).' placement'" :tooltip-side="$side">
{{ ucfirst($side) }}
</hw:button>
@endforeach
</div>