obra-icons-vue
v1.23.2
Published
Obra Icons for <a href="https://vuejs.org/">Vue</a>.
Readme
obra-icons-vue
Obra Icons for Vue.
A simple, consistent set of icons, perfect for user interfaces. Obra Icons consists of more than 1000 icons.
Installation
npm install -D obra-icons-vueThis package works with Vue 2 and 3.
Usage example
<script setup>
import { IconAdd } from 'obra-icons-vue';
</script>
<template>
<IconAdd :size="48" color="mediumseagreen" :strokeWidth="1"/>
</template>As you can see, you can use the size, color and strokeWidth props to customize the icon.
Targeting with CSS
Every SVG contains an obra-icon class on the top level SVG element, that you can target with CSS.
Next to this, the inner elements are also targetable, with the following class names:
oi-fill: Fill layersoi-vector: Vector layersoi-ellipse: Ellipse layersoi-box: Box layersoi-triangle: Triangle layersoi-incomplete-triangle: Incomplete triangle layersoi-mini-square: Mini square layersoi-line: Line layersoi-mini-dot: Mini dotsoi-medium-dot: Medium dotsoi-dot: Regular dots
Which icons are available?
For a full reference, see the list at Obra Icons website.
Running the demo
- clone this repo
- cd into this directory
- run
pnpm i - run
pnpm devto start the dev server - open the URL it outputs in your browser
