1.2.0 • Published 6 months ago

tabler-icons-qwik v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Tabler Icons for Qwik

sync workflow

Unofficial implementation of the Tabler Icons library for Qwik applications. The package is automatically synced with @tabler/icons two times every day. See the above badge.

See https://tabler-icons.io, or https://github.com/tabler/tabler-icons for more information.

Installation

# run either of theses
npm install tabler-icons-qwik
yarn add tabler-icons-qwik
pnpm add tabler-icons-qwik

How to use

Each icon can be imported as a component. You can find all icons at https://tabler-icons.io.

import { IconArrowLeft } from "tabler-icons-qwik";

<IconArrowLeft size={24} color="currentColor" stroke={2} />;

Vite

Using this library with Vite in development mode will cause extremely long loading times. This is because vite does not tree-shake in development mode, see https://github.com/vitejs/vite/issues/8237.

The workaround is to use the vite-plugin-entry-shaking plugin to force tree-shaking of specific modules.

# run either of theses
npm install vite-plugin-entry-shaking
yarn add vite-plugin-entry-shaking
pnpm add vite-plugin-entry-shaking

Add this to your existing vite config:

import EntryShakingPlugin from "vite-plugin-entry-shaking";

export default defineConfig({
  plugins: [
    EntryShakingPlugin({
      targets: [
        resolve(__dirname, "node_modules/tabler-icons-qwik/lib/esm/index.js"),
      ],
    }),
  ],
});

License

Tabler Icons is licensed under the MIT License.

1.2.0

6 months ago

1.1.0

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.1

9 months ago