mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-08 08:52:19 +02:00
Fix vue code highlighting for website
This commit is contained in:
parent
1ec4d9ded7
commit
b3d29d8f4b
|
@ -18,9 +18,9 @@
|
|||
|
||||
### Vue 3
|
||||
|
||||
```vue
|
||||
```js
|
||||
<script setup>
|
||||
import { Iconoir } from '@iconoir/vue';
|
||||
import { Iconoir } from '@iconoir/vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -30,15 +30,15 @@ import { Iconoir } from '@iconoir/vue';
|
|||
|
||||
### Vue 2
|
||||
|
||||
```vue
|
||||
```js
|
||||
<script>
|
||||
import { Iconoir } from '@iconoir/vue';
|
||||
import { Iconoir } from '@iconoir/vue';
|
||||
|
||||
export default
|
||||
components: {
|
||||
Iconoir
|
||||
}
|
||||
}
|
||||
export default
|
||||
components: {
|
||||
Iconoir
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -67,7 +67,7 @@ Default values for the most common props are given below:
|
|||
|
||||
Tired of specifying the same props for every single icon, every time you use them? So were we. Use IconoirProvider to set the default icon props for everything inside IconoirProvider.
|
||||
|
||||
```vue
|
||||
```js
|
||||
<script setup>
|
||||
import { IconoirProvider, Check } from '@iconoir/vue';
|
||||
</script>
|
||||
|
@ -75,10 +75,10 @@ import { IconoirProvider, Check } from '@iconoir/vue';
|
|||
<template>
|
||||
<IconoirProvider
|
||||
:icon-props="{
|
||||
color: '#AAAAAA',
|
||||
'color': '#AAAAAA',
|
||||
'stroke-width': 1,
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
'width': '1em',
|
||||
'height': '1em',
|
||||
}"
|
||||
>
|
||||
<SomeOtherContainer>
|
||||
|
|
Loading…
Reference in a new issue