@unocss/preset-attributify 0.37.2 → 0.37.3

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.
Files changed (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -69,6 +69,25 @@ Create `shims.d.ts` with the following content:
69
69
 
70
70
  > By default, the type includes common attributes from `@unocss/preset-uno`. If you need custom attributes, refer to the [type source](https://github.com/antfu/unocss/blob/main/packages/preset-attributify/src/jsx.ts) to implement your own type.
71
71
 
72
+ ### Vue
73
+
74
+ Since Volar 0.36, [it's now strict to unknown attributes](https://github.com/johnsoncodehk/volar/issues/1077#issuecomment-1145361472). To opt-out, you can add the following file to your project:
75
+
76
+ ```ts
77
+ // html.d.ts
78
+ declare module '@vue/runtime-dom' {
79
+ interface HTMLAttributes {
80
+ [key: string]: any
81
+ }
82
+ }
83
+ declare module '@vue/runtime-core' {
84
+ interface AllowedComponentProps {
85
+ [key: string]: any
86
+ }
87
+ }
88
+ export {}
89
+ ```
90
+
72
91
  ### React
73
92
 
74
93
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-attributify",
3
- "version": "0.37.2",
3
+ "version": "0.37.3",
4
4
  "description": "Attributify preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@unocss/core": "0.37.2"
36
+ "@unocss/core": "0.37.3"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",