mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 06:21:46 +01:00
feat: migrate to @nuxtjs/tailwindcss (#32)
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
<template>
|
||||
<div :class="name" />
|
||||
<Icon :icon="name" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
<script setup>
|
||||
import { Icon, addCollection } from '@iconify/vue/dist/offline'
|
||||
import outline from '@iconify-json/heroicons-outline/icons.json'
|
||||
import solid from '@iconify-json/heroicons-solid/icons.json'
|
||||
|
||||
addCollection(outline)
|
||||
addCollection(solid)
|
||||
|
||||
defineProps({
|
||||
name: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user