/react-icons-tb

deno fresh react-icons for tb

Primary LanguageTypeScript

Tabler Icons icons for preact

JSR

License MIT

Project https://github.com/tabler/tabler-icons

See available icons here

install the module

deno add @preact-icons/tb
dnpx jsr add @preact-icons/tb
pnpm dlx jsr add @preact-icons/tb
bunx jsr add @preact-icons/tb

You may need to update your preact mapping to avoid mixing JSR and http import: Currently Deno fresh import preact using https://esm.sh/preact http import can not be mixed with JSR package, so you may need to update your preact mapping:

{
 "preact": "npm:preact@10.22.1",
 "preact/jsx-runtime": "npm:preact@10.22.1/jsx-runtime",
 "preact/hooks": "npm:preact@10.22.1/hooks",
}

import an icon from all icons

import { TbAccessibleFilled } from "@preact-icons/tb"

import a single icon, downloading just one icon

import { TbAccessibleFilled } from "react-icons/tb/TbAccessibleFilled"

or using default export

import TbAccessibleFilled from "react-icons/tb/TbAccessibleFilled"