mirror of
https://github.com/Rakantor/personal-portfolio.git
synced 2025-12-17 19:36:32 +01:00
Add custom iconset and SVGs
This commit is contained in:
15
iconsets/brands.ts
Normal file
15
iconsets/brands.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { h } from 'vue'
|
||||
import type { IconSet, IconProps } from 'vuetify'
|
||||
import apple from '~/components/svg/apple.vue'
|
||||
import heroku from '~/components/svg/heroku.vue'
|
||||
|
||||
const customSvgNameToComponent: any = {
|
||||
apple,
|
||||
heroku,
|
||||
}
|
||||
|
||||
const brands: IconSet = {
|
||||
component: (props: IconProps) => h(customSvgNameToComponent[props.icon], { class: 'v-icon__svg' }),
|
||||
}
|
||||
|
||||
export { brands }
|
||||
Reference in New Issue
Block a user