@boxicons/vue

Vue components for Boxicons
6,378
Install
npm install @boxicons/vue
Latest Version:1.0.1
Vue:3
License:MIT
Last Updated:Feb 16, 2026
Links: GitHub  ·  npm
Maintainer: bxicons

@boxicons/vue

Vue 3 icon library built from Boxicons SVG files with full tree-shaking support.

Installation

npm install @boxicons/vue
# or
yarn add @boxicons/vue
# or
pnpm add @boxicons/vue

Usage

Basic Usage

<script setup>
import { Alarm, Twitter, Home } from '@boxicons/vue';
</script>

<template>
  <Alarm />
  <Twitter />
  <Home />
</template>

Icon Packs

  • basic - Outline/regular style icons (default)
  • filled - Solid/filled style icons
  • brands - Brand/logo icons
<template>
  <Alarm />
  <Alarm pack="filled" />
</template>

Sizing

Size Presets
<template>
  <Alarm size="xs" />   <!-- 16px -->
  <Alarm size="sm" />   <!-- 20px -->
  <Alarm size="base" /> <!-- 24px (default) -->
  <Alarm size="md" />   <!-- 36px -->
  <Alarm size="lg" />   <!-- 48px -->
  <Alarm size="xl" />   <!-- 64px -->
  <Alarm size="2xl" />  <!-- 96px -->
  <Alarm size="3xl" />  <!-- 128px -->
  <Alarm size="4xl" />  <!-- 256px -->
  <Alarm size="5xl" />  <!-- 512px -->
</template>
Custom Sizing
<template>
  <Alarm :width="32" :height="32" />
  <Alarm width="2rem" height="2rem" />
</template>

Colors

<template>
  <Alarm fill="#ff0000" />
  <Alarm fill="currentColor" />
</template>

Opacity

<template>
  <Alarm :opacity="0.5" />
</template>

Flip

<template>
  <Alarm flip="horizontal" />
  <Alarm flip="vertical" />
</template>

Rotate

<template>
  <Alarm :rotate="45" />
  <Alarm rotate="90deg" />
</template>

Remove Padding

<template>
  <Alarm remove-padding />
</template>

Combining Props

<template>
  <Alarm 
    pack="filled"
    fill="#ffffff"
    :opacity="0.8"
    size="lg"
    flip="horizontal"
    :rotate="45"
    class="my-icon"
  />
</template>

Tree Shaking

Only imported icons are bundled:

// ✅ Only Alarm is bundled
import { Alarm } from '@boxicons/vue';

Available Icons

  • 1884 basic (outline) icons
  • 1884 filled icons
  • 295 brand icons

TypeScript

import type { BoxIconProps, IconPack, IconSize, FlipDirection } from '@boxicons/vue';

License

MIT

Related Packages

vue-icons-plus

SVG vue icons of popular icon packs using ES6 imports

108,253 65
@vue-icons-plus/all-files

SVG vue icons of popular icon packs using ES6 imports

4,499 65
@vue-icons-plus/sfc-1

SVG vue icons of popular icon packs using ES6 imports

4,189 65
@vue-icons-plus/sfc-2

SVG vue icons of popular icon packs using ES6 imports

2,532 65

Version History

Version Released License
1.0.1 MIT
1.0.0 MIT