A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Installation
Run the following command:
Add the TooltipProvider to the root of your app.
@inherits LayoutComponentBase
<TooltipProvider>
<main>@Body</main>
</TooltipProvider>Usage
<Tooltip>
<TooltipTrigger>Hover</TooltipTrigger>
<TooltipContent><p>Add to library</p></TooltipContent>
</Tooltip>Composition
Use the following composition to build a Tooltip:
Tooltip
├── TooltipTrigger
└── TooltipContentSide
Use the Side parameter to change the position of the tooltip.
With Keyboard Shortcut
Disabled Button
Show a tooltip on a disabled button by wrapping it with a span.
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
API Reference
Tooltip
TooltipContent
Other attributes are passed to the element it renders.
TooltipProvider
TooltipTrigger
Other attributes are passed to the element it renders.