@terminus/ui-tooltip
v2.0.0
Published
<h1>Tooltip</h1>
Keywords
Readme
Table of Contents
Installation
Packages that need to be installed
@angular/cdk@angular/common@angular/core@angular/flex-layout@angular/forms@angular/material@angular/platform-browser@terminus/design-tokens@terminus/fe-utilities@terminus/ui-utilities@terminus/ui-tooltipdate-fns
Use the ng add command to quickly install all the needed dependencies:
ng add @terminus/ui-tooltipModules that need to be in NgModule
BrowserAnimationsModuleTsTooltipModule
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>