@fluid-topics/ft-icon
v1.1.99
Published
Typography components
Downloads
5,502
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>