Skip to content
TallCraftUI

Tooltip

Short hint shown on hover, in four positions.

Basic usage

Blade
<x-tooltip text="Default" />
 
{{-- Custom icon --}}
<x-tooltip text="Custom icon" icon="information-circle" />
 
{{-- custom slot --}}
<x-tooltip text="Custom slot">
<x-icon name="cog-6-tooth" class="text-gray-500" />
</x-tooltip>

Tooltip position

Blade
<x-tooltip text="Top" top />
<x-tooltip text="Bottom" bottom />
<x-tooltip text="Left" left />
<x-tooltip text="Right" right />

Gradient tooltip

Blade
<x-tooltip text="TallCraftUI" gradient />

Without transition

Blade
<x-tooltip text="TallCraftUI" no-transition />

Without arrow

Blade
<x-tooltip text="TallCraftUI" no-arrow />

Default settings

Change tooltip default settings according your needs config/tallcraftui.php

PHP
return [
'tooltip' => [
'position' => Position::TOP->value,
'gradient' => false,
'noArrow' => false,
'noTransition' => false,
],
];

API reference

Props are read from the component classes in TallCraftUI 3.0.0-beta.1. Write them in kebab-case and pass booleans as bare attributes, for example <x-button outline />. Other attributes, such as class or wire:model, are passed to the component's element.

<x-tooltip>

View source
Prop Type Default
text string —
icon string null
gradient bool null
no-arrow bool null
no-transition bool null
Config
tooltip.position = top tooltip.gradient = false tooltip.noArrow = false tooltip.noTransition = false Change defaults