Components Overlays
Tooltip
A hint on hover and keyboard focus, with CSS alone.
$ pyblade ui:add tooltip
Sides
Props
Written as attributes of <pb-ui.tooltip>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| text | str | "" | |
| side | str | "top" | top, bottom, left or right |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |