@remixicon/vue 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,16 +27,12 @@ pnpm install @remixicon/vue
27
27
 
28
28
  ## Usage
29
29
 
30
- ```jsx
30
+ ```vue
31
+ <script setup lang="ts">
31
32
  import { RiHeartFill } from '@remixicon/vue'
33
+ </script>
32
34
 
33
- const MyComponent = () => {
34
- return (
35
- <RiHeartFill
36
- size={36} // set custom `width` and `height`
37
- color="red" // set `fill` color
38
- className="my-icon" // add custom class name
39
- />
40
- )
41
- }
35
+ <template>
36
+ <RiHeartFill size="36px" color="red" className="my-icon">
37
+ </template>
42
38
  ```
package/README_CN.md CHANGED
@@ -27,16 +27,12 @@ pnpm install @remixicon/vue
27
27
 
28
28
  ## 使用
29
29
 
30
- ```jsx
30
+ ```vue
31
+ <script setup lang="ts">
31
32
  import { RiHeartFill } from '@remixicon/vue'
33
+ </script>
32
34
 
33
- const MyComponent = () => {
34
- return (
35
- <RiHeartFill
36
- size={36} // 设置大小
37
- color="red" // 设置颜色
38
- className="my-icon" // 添加自定义样式名
39
- />
40
- )
41
- }
35
+ <template>
36
+ <RiHeartFill size="36px" color="red" className="my-icon">
37
+ </template>
42
38
  ```