UNPKG

@fluid-topics/ft-icon

Version:

Typography components

33 lines (25 loc) 479 B
An icon component. ## Install ```shell npm install @fluid-topics/ft-icon yarn add @fluid-topics/ft-icon ``` ## Usage ```typescript import { html } from "lit" import "@fluid-topics/ft-icon" function render() { return html` <ft-icon>account_settings</ft-icon> ` } ``` Define icon fonts as follows: ```html <html> <head> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fluid-topics/ft-icon/assets/font-definitions.css"> </head> ... </html> ```