Tooltip โ
...
Browser support โ
...
Parameters โ
The CSS component uses a <em>
or a <td>
tag inside a table.
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description |
---|---|---|
z-tooltip | string | The main parameter has three components following the pattern:
|
tooltip-text | string | The text to be displayed inside the tooltip. |
content | string | The text to be hovered |
Playground โ
Customization โ
HTML Examples โ
Imports
html
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/base.css" />
<link rel="stylesheet" href="/0.3.6/@zurich/design-tokens/Icons.css" />
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/Tooltip.css" />
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/Icon.css" />
Code
html
<em z-tooltip="top" tooltip-text="Add to calendar"><i z-icon="calendar:outline"></i></em>
<em z-tooltip="bottom-right" tooltip-text="Information text"><i z-icon="info:outline"></i></em>