Skip to content

Commit 3942dbe

Browse files
authored
types(jsx): add new HTML attributes for improved JSX support (vuejs#13370)
1 parent f40baa2 commit 3942dbe

File tree

1 file changed

+23
-13
lines changed
  • packages/runtime-dom/src

1 file changed

+23
-13
lines changed

packages/runtime-dom/src/jsx.ts

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,19 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
286286
contextmenu?: string | undefined
287287
dir?: string | undefined
288288
draggable?: Booleanish | undefined
289+
enterkeyhint?:
290+
| 'enter'
291+
| 'done'
292+
| 'go'
293+
| 'next'
294+
| 'previous'
295+
| 'search'
296+
| 'send'
297+
| undefined
298+
/**
299+
* @deprecated Use `enterkeyhint` instead.
300+
*/
301+
enterKeyHint?: HTMLAttributes['enterkeyhint']
289302
hidden?: Booleanish | '' | 'hidden' | 'until-found' | undefined
290303
id?: string | undefined
291304
inert?: Booleanish | undefined
@@ -346,6 +359,14 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
346359
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
347360
*/
348361
is?: string | undefined
362+
/**
363+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
364+
*/
365+
exportparts?: string
366+
/**
367+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
368+
*/
369+
part?: string
349370
}
350371

351372
type HTMLAttributeReferrerPolicy =
@@ -498,6 +519,7 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
498519
alt?: string | undefined
499520
crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined
500521
decoding?: 'async' | 'auto' | 'sync' | undefined
522+
fetchpriority?: 'high' | 'low' | 'auto' | undefined
501523
height?: Numberish | undefined
502524
loading?: 'eager' | 'lazy' | undefined
503525
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
@@ -547,19 +569,6 @@ export interface InputHTMLAttributes extends HTMLAttributes {
547569
checked?: Booleanish | any[] | Set<any> | undefined // for IDE v-model multi-checkbox support
548570
crossorigin?: string | undefined
549571
disabled?: Booleanish | undefined
550-
enterkeyhint?:
551-
| 'enter'
552-
| 'done'
553-
| 'go'
554-
| 'next'
555-
| 'previous'
556-
| 'search'
557-
| 'send'
558-
| undefined
559-
/**
560-
* @deprecated Use `enterkeyhint` instead.
561-
*/
562-
enterKeyHint?: InputHTMLAttributes['enterkeyhint']
563572
form?: string | undefined
564573
formaction?: string | undefined
565574
formenctype?: string | undefined
@@ -1292,6 +1301,7 @@ export interface IntrinsicElementAttributes {
12921301
polyline: SVGAttributes
12931302
radialGradient: SVGAttributes
12941303
rect: SVGAttributes
1304+
set: SVGAttributes
12951305
stop: SVGAttributes
12961306
switch: SVGAttributes
12971307
symbol: SVGAttributes

0 commit comments

Comments
 (0)