We are currently in alpha version.
Please expect changes. If you find any issues, please report them on our github.
Tooltip
Tooltips are subtle UI elements that provide contextual information when users hover over, focus on, or tap an element. They offer quick, informative guidance or explanations without cluttering the interface, enhancing user understanding and interaction.
Basic toggle
This is a tooltip!
html
Optional properties
Property | Type | Description |
---|---|---|
|
| Defines the tooltip's shape. |
|
| Specifies the position of the tooltip relative to its trigger element. By default, the position is set to |
Global configurations
A list of global styles, including shape, size, color, font sizes, font weights, and letter spacing can be provided via themeLibrary
in the provideZapOption
provider.. If you have multi theme setup, you can also provide theme specific colors. These apply to all default variants through out the app unless component level styles are provided.
Example
app.config.ts
Shape
Property | Description |
---|---|
| Defines the shape of the tooltip. Can be |
Colors
You can provide each of these colors for different themes that you use
Property | Description |
---|---|
| Background color of the handler of the tooltip. |
| Text color of the handler of the tooltip. |
| Border color of the handler of the tooltip. |
| Background color of the handler of the tooltip when hovered. |
| Text color of the handler of the tooltip when hovered. |
| Border color of the handler of the tooltip when hovered. |
| Background color of the content of the tooltip. |
| Text color of the content of the tooltip. |
| Border color of the content of the tooltip. |
Other styles
You can provide a bunch of other styles, that are not theme based but rather generic
Property | Description |
---|---|
| Defines the radius of the content's corners. |
| Left padding of the content element. |
| Right padding of the content element. |
| Top padding of the content element. |
| Bottom padding of the content element. |
| Padding around the tooltip's content element. |
| Font size of the tooltip's content element. |
| Font weight of the tooltip's content element. |
| Line height of the tooltip's content element. |
| Letter spacing of the tooltip's content element. |
| Defines the radius of the handler's corners. |
| Font size of the tooltip's handler element. |
| Font weight of the tooltip's handler element. |
| Line height of the tooltip's handler element. |
| Letter spacing of the tooltip's handler element. |