@fluid-topics/ft-icon
v1.1.87
Published
Typography components
Downloads
4,640
Readme
An icon component.
Install
npm install @fluid-topics/ft-icon
yarn add @fluid-topics/ft-icon
Usage
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>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fluid-topics/ft-icon/assets/font-definitions.css">
</head>
...
</html>