xyz-icon-set-vue
v0.48.0
Published
Official Vue components package for icons from XYZ Icon Set
Downloads
38
Readme
XYZ Icon Set for Vue
Official Vue components package for icons from XYZ Icon Set.
List of icons available at XYZ Icon Set Website
Usage
Installation with NPM
npm install xyz-icon-set-vue
Importing icon from a package
Note: Examples are shown with ES6 syntax
You can import icons selectively by its name with suffix "Icon" (to prevent variable name collisions and misuse of keywords in cases such as return
or copy
icons).
import XYZIconSet from 'xyz-icon-set-vue';
const { PaperPlaneIcon } = XYZIconSet;
Icon Component Reference
import XYZIconSet from 'xyz-icon-set-vue';
const { PaperPlaneIcon } = XYZIconSet;
export default {
components: { PaperPlaneIcon },
};
<template>
<div>
<PaperPlaneIcon />
</div>
</template>
Properties
theme
Either regular
or thin
.
Default value: regular
<template>
<div>
<PaperPlaneIcon /> <!-- Theme defaults to "regular" -->
<PaperPlaneIcon theme="regular" />
<PaperPlaneIcon theme="thin" />
</div>
</template>
fillOpacity
Opacity of the transparent fill inside of the icon. Accepts values between 0
and 1
. It is not recommended to use higher values than 0.5
as it could break the legibility and recognizability of the icon.
Default value: 0
<template>
<div>
<PaperPlaneIcon /> <!-- Fill opacity defaults to 0 -->
<PaperPlaneIcon fillOpacity="0.25" />
<PaperPlaneIcon fillOpacity="0.5" />
</div>
</template>
License
XYZ Icon Set is licensed under the MIT License.