1.1.2 • Published 10 months ago

vue-icons-lite v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Vue 3 Icon Component

Installation

Install NPM

npm install vue-icons-lite

Install via yarn

yarn add vue-icons-lite

Global Vue Usage

import { createApp } from "vue";
import Icon from "vue-icons-lite";

const app = createApp();
app.component("Icon", Icon);

app.mount("#app");

Local Usage (Options API)

<script>
import Icon from "vue-icons-lite";
export default {
    components: { Icon }
}    
</script>

Local Usage (Composition API)

<script>
import Icon from "vue-icons-lite";
export degault {
    setup() {
        return { Icon }
    }
}
</script>

Example

<template>
    <Icon name="photo" size="36"/>
</template>

Props

NameTypeDefaultDescription
nameStringnullIcon name. The icon in the public/icons folder should be named the same way
sizeString24Icon size
classNameStringnullClass for the block in which the icon is located

About the package

Icon uses the icons located in /public/icons

1.1.2

10 months ago

1.1.1

1 year ago

1.0.19

1 year ago

1.1.0

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.20

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.12

1 year ago

1.0.4

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago