PyBlade/ui
Menu⌄
DocsComponentsTooltip

Tooltip

A hint shown on hover and focus, in CSS only.

1 file

Installation

pyblade-ui add tooltip

Usage

The tag <pb-ui.tooltip> is available in all your templates.

<pb-ui.tooltip text="Add to library"><pb-ui.button variant="outline">Hover</pb-ui.button></pb-ui.tooltip>

Examples

Sides

Props

PropDefault
text''
side'top'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.