Vue Tabler Icons

2.21.0 · active · verified Sun Apr 19

`vue-tabler-icons` provides over 1250 pixel-perfect Tabler Icons as native Vue 3 components, with TypeScript definitions included. The current stable version is 2.21.0, and releases frequently synchronize with updates to the upstream `@tabler/icons` library, ensuring access to the latest icon sets. This library compiles all icons directly into JavaScript, eliminating the need for pre-processing steps. Key differentiators include direct Vue component usage, comprehensive TypeScript support, and straightforward customization options for size, color (via `currentColor`), and SVG attributes like `stroke-width`. It primarily supports Vue 3, while older Vue 2 applications can utilize the 1.x branch, though it receives delayed or discontinued updates.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates importing and using individual Tabler icon components in a Vue 3 application, customizing their size, color, stroke width, and adding titles for accessibility.

import { createApp } from 'vue';
import { HomeIcon, SettingsIcon, UserIcon } from 'vue-tabler-icons';

const app = createApp({
  components: {
    HomeIcon,
    SettingsIcon,
    UserIcon,
  },
  template: `
    <div id="app">
      <h1>My Application</h1>
      <p>Welcome to the dashboard!</p>
      <home-icon size="32" style="color: #42b983;" />
      <settings-icon size="24" stroke-width="1.5" />
      <user-icon size="20" class="text-blue-500" />
      <p>Hover for tooltips:</p>
      <home-icon size="24" title="Go to Home" />
      <settings-icon size="24" title="Open Settings" />
    </div>
  `,
});

app.mount('#app');

view raw JSON →