Tooltip
Table of Contents
Installation
Use the ng add
command to quickly install all the needed dependencies:
ng add @terminus/ui-tooltip
CSS imports
In your top-level stylesheet, add these imports:
@import '~@terminus/design-tokens/css/library-design-tokens.css';
@import '~@terminus/ui-styles/terminus-ui.css';
CSS resources
Load the needed font families by adding this link to the <head>
of your application:
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
Usage
<ts-tooltip tooltipValue="My tooltip value!">My tooltip trigger!</ts-tooltip>
Position
Set the position to one of the allowed TsTooltipPositionTypes
(default is below
).
<ts-tooltip
tooltipValue="My tooltip value!"
tooltipPosition="above"
>My tooltip trigger!</ts-tooltip>