feat: add vite-plugin-components
This commit is contained in:
1 parent
3a66a4744e
commit
5022d6252f
8 files changed
+40
-29
No files matched your search
@@ -0,0 +1,14 @@
|
||||
## Components
|
||||
|
||||
Components in this dir will auto registered as global components by [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components).
|
||||
|
||||
|
||||
### `Icon.vue`
|
||||
|
||||
You can uses Icons with the following syntax
|
||||
|
||||
```html
|
||||
<Icon icon='mdi:account'/>
|
||||
```
|
||||
|
||||
The icon id follows the rules in [Iconify](https://iconify.design/) which you can use any icons from the supported icon sets. It will only bundles the icons you use, check out [PurgeIcons](https://github.com/antfu/purge-icons) for more details.
|
||||
Reference in new issue
Block a user