This is a fork of css.gg.
Add the generate.ts script to generate TSX ES modules that are independent of the React implementation.
Running this command will generate the TSX files under icons/tsx-esm.
deno run --allow-read --allow-write generate.ts
Add this to your import map:
{
"imports": {
"icons": "https://raw.githubusercontent.com/eibens/css.gg/main/icons/tsx-esm/"
}
}
Then import the icons like this:
import { ArrowLeft } from "icons/ArrowLeft.tsx";