Tooltip
Description
A tooltip component using Basecoat CSS.
Usage
bc_tooltip(..., text, side = "top", align = "center")
Arguments
| Argument | Description |
|---|---|
... |
Tag attributes and children for the element with tooltip. |
text |
String. The tooltip text. |
side |
String. Position of the tooltip. One of top, bottom, left, right, inline-start, or inline-end. Defaults to top. |
align |
String. Alignment of the tooltip. One of start, center, or end. Defaults to center. |
Value
An HTML element with tooltip attributes.
Examples
bc_tooltip("Save", text = "Save your work")
Save
bc_tooltip("Info", text = "Additional information", side = "bottom")
Info