@terminus/ui-toggle
v3.1.0
Published
<h1>Toggle</h1>
Downloads
7
Keywords
Readme
A simple toggle, or 'switch', component.
Table of Contents
Installation
Use the ng add
command to quickly install all the needed dependencies:
ng add @terminus/ui-toggle
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-toggle (selectionChange)="myChange($event)">Toggle</ts-toggle>