feat: Use Fluent SVG icons on the dashboard (#3482)

This commit is contained in:
Pranav Raj S 2021-11-30 21:03:18 -08:00 committed by GitHub
parent 98be3b33c1
commit c792cfc0be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
151 changed files with 613 additions and 617 deletions

View file

@ -0,0 +1,35 @@
<template>
<svg
:width="size"
:height="size"
fill="none"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path :d="icons[`${icon}-${type}`]" fill="currentColor" />
</svg>
</template>
<script>
import icons from './dashboard-icons.json';
export default {
name: 'FluentIcon',
props: {
icon: {
type: String,
required: true,
},
size: {
type: [String, Number],
default: '20',
},
type: {
type: String,
default: 'outline',
},
},
data() {
return { icons };
},
};
</script>