@@ -21,6 +21,7 @@ with an automatic JSX runtime.
21
21
* [ ` toJsxRuntime(tree, options) ` ] ( #tojsxruntimetree-options )
22
22
* [ ` Options ` ] ( #options )
23
23
* [ ` Components ` ] ( #components-1 )
24
+ * [ ` ElementAttributeNameCase ` ] ( #elementattributenamecase-1 )
24
25
* [ ` Fragment ` ] ( #fragment-1 )
25
26
* [ ` Jsx ` ] ( #jsx-1 )
26
27
* [ ` JsxDev ` ] ( #jsxdev-1 )
@@ -163,6 +164,11 @@ File path to the original source file (`string`, optional).
163
164
Passed in source info to ` jsxDEV ` when using the automatic runtime with
164
165
` development: true ` .
165
166
167
+ ###### ` elementAttributeNameCase `
168
+
169
+ Specify casing to use for attribute names
170
+ ([ ` ElementAttributeNameCase ` ] [ elementattributenamecase ] , default: ` 'react' ` ).
171
+
166
172
###### ` passNode `
167
173
168
174
Pass the hast element node to components (` boolean ` , default: ` false ` ).
@@ -213,6 +219,19 @@ type Component<ComponentProps> =
213
219
| (new (props : ComponentProps ) => JSX .ElementClass )
214
220
` ` `
215
221
222
+ ### ` ElementAttributeNameCase `
223
+
224
+ Specify casing to use for attribute names (TypeScript type).
225
+
226
+ React casing is for example ` className ` , ` strokeLinecap ` , ` xmlLang ` .
227
+ HTML casing is for example ` class ` , ` stroke -linecap ` , ` xml : lang ` .
228
+
229
+ ###### Type
230
+
231
+ ` ` ` ts
232
+ type ElementAttributeNameCase = ' react' | ' html'
233
+ ` ` `
234
+
216
235
### ` Fragment `
217
236
218
237
Represent the children, typically a symbol (TypeScript type).
@@ -281,7 +300,7 @@ type Props = {
281
300
| number
282
301
| boolean
283
302
| undefined
284
- children: Array <JSX .Element | string | null | undefined >
303
+ children: Array <JSX .Element | string | null | undefined > | undefined
285
304
node? : Element | undefined
286
305
}
287
306
` ` `
@@ -397,6 +416,7 @@ followed by browsers such as Chrome, Firefox, and Safari.
397
416
398
417
This package is fully typed with [ TypeScript] [ ] .
399
418
It exports the additional types [ ` Components ` ] [ components ] ,
419
+ [ ` ElementAttributeNameCase ` ] [ elementattributenamecase ] ,
400
420
[ ` Fragment ` ] [ fragment ] , [ ` Jsx ` ] [ jsx ] , [ ` JsxDev ` ] [ jsxdev ] , [ ` Options ` ] [ options ] ,
401
421
[ ` Props ` ] [ props ] , [ ` Source ` ] [ source ] , and [ ` Space ` ] [ Space ] .
402
422
@@ -513,3 +533,5 @@ abide by its terms.
513
533
[ space ] : #space-1
514
534
515
535
[ components ] : #components-1
536
+
537
+ [ elementattributenamecase ] : #elementattributenamecase-1
0 commit comments