intrinsic-elements.ts
This file
Path
src/jsx/intrinsic-elements.ts
924 lines · 29.8 KiB · TypeScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than f0b094d point at it.
Merge commit from forkYusuke Wadabefore adoptionf0b094d
lines 1–924why, one step back1/* eslint-disable @typescript-eslint/no-explicit-any */23import type { BaseMime } from '../utils/mime'4import type { StringLiteralUnion } from '../utils/types'56/**7 * This code is based on React.8 * https://github.com/facebook/react9 * MIT License10 * Copyright (c) Meta Platforms, Inc. and affiliates.11 */1213// eslint-disable-next-line @typescript-eslint/no-namespace14export namespace JSX {15 export type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined16 export interface CSSProperties {17 [propertyKey: string]: unknown18 }19 type AnyAttributes = { [attributeName: string]: any }2021 interface JSXAttributes {22 dangerouslySetInnerHTML?: {23 __html: string24 }25 }2627 interface EventAttributes {28 onScroll?: (event: Event) => void29 onScrollCapture?: (event: Event) => void30 onScrollEnd?: (event: Event) => void31 onScrollEndCapture?: (event: Event) => void32 onWheel?: (event: WheelEvent) => void33 onWheelCapture?: (event: WheelEvent) => void34 onAnimationCancel?: (event: AnimationEvent) => void35 onAnimationCancelCapture?: (event: AnimationEvent) => void36 onAnimationEnd?: (event: AnimationEvent) => void37 onAnimationEndCapture?: (event: AnimationEvent) => void38 onAnimationIteration?: (event: AnimationEvent) => void39 onAnimationIterationCapture?: (event: AnimationEvent) => void40 onAnimationStart?: (event: AnimationEvent) => void41 onAnimationStartCapture?: (event: AnimationEvent) => void42 onCopy?: (event: ClipboardEvent) => void43 onCopyCapture?: (event: ClipboardEvent) => void44 onCut?: (event: ClipboardEvent) => void45 onCutCapture?: (event: ClipboardEvent) => void46 onPaste?: (event: ClipboardEvent) => void47 onPasteCapture?: (event: ClipboardEvent) => void48 onCompositionEnd?: (event: CompositionEvent) => void49 onCompositionEndCapture?: (event: CompositionEvent) => void50 onCompositionStart?: (event: CompositionEvent) => void51 onCompositionStartCapture?: (event: CompositionEvent) => void52 onCompositionUpdate?: (event: CompositionEvent) => void53 onCompositionUpdateCapture?: (event: CompositionEvent) => void54 onBlur?: (event: FocusEvent) => void55 onBlurCapture?: (event: FocusEvent) => void56 onFocus?: (event: FocusEvent) => void57 onFocusCapture?: (event: FocusEvent) => void58 onFocusIn?: (event: FocusEvent) => void59 onFocusInCapture?: (event: FocusEvent) => void60 onFocusOut?: (event: FocusEvent) => void61 onFocusOutCapture?: (event: FocusEvent) => void62 onFullscreenChange?: (event: Event) => void63 onFullscreenChangeCapture?: (event: Event) => void64 onFullscreenError?: (event: Event) => void65 onFullscreenErrorCapture?: (event: Event) => void66 onKeyDown?: (event: KeyboardEvent) => void67 onKeyDownCapture?: (event: KeyboardEvent) => void68 onKeyPress?: (event: KeyboardEvent) => void69 onKeyPressCapture?: (event: KeyboardEvent) => void70 onKeyUp?: (event: KeyboardEvent) => void71 onKeyUpCapture?: (event: KeyboardEvent) => void72 onAuxClick?: (event: MouseEvent) => void73 onAuxClickCapture?: (event: MouseEvent) => void74 onClick?: (event: MouseEvent) => void75 onClickCapture?: (event: MouseEvent) => void76 onContextMenu?: (event: MouseEvent) => void77 onContextMenuCapture?: (event: MouseEvent) => void78 onDoubleClick?: (event: MouseEvent) => void79 onDoubleClickCapture?: (event: MouseEvent) => void80 onMouseDown?: (event: MouseEvent) => void81 onMouseDownCapture?: (event: MouseEvent) => void82 onMouseEnter?: (event: MouseEvent) => void83 onMouseEnterCapture?: (event: MouseEvent) => void84 onMouseLeave?: (event: MouseEvent) => void85 onMouseLeaveCapture?: (event: MouseEvent) => void86 onMouseMove?: (event: MouseEvent) => void87 onMouseMoveCapture?: (event: MouseEvent) => void88 onMouseOut?: (event: MouseEvent) => void89 onMouseOutCapture?: (event: MouseEvent) => void90 onMouseOver?: (event: MouseEvent) => void91 onMouseOverCapture?: (event: MouseEvent) => void92 onMouseUp?: (event: MouseEvent) => void93 onMouseUpCapture?: (event: MouseEvent) => void94 onMouseWheel?: (event: WheelEvent) => void95 onMouseWheelCapture?: (event: WheelEvent) => void96 onGotPointerCapture?: (event: PointerEvent) => void97 onGotPointerCaptureCapture?: (event: PointerEvent) => void98 onLostPointerCapture?: (event: PointerEvent) => void99 onLostPointerCaptureCapture?: (event: PointerEvent) => void100 onPointerCancel?: (event: PointerEvent) => void101 onPointerCancelCapture?: (event: PointerEvent) => void102 onPointerDown?: (event: PointerEvent) => void103 onPointerDownCapture?: (event: PointerEvent) => void104 onPointerEnter?: (event: PointerEvent) => void105 onPointerEnterCapture?: (event: PointerEvent) => void106 onPointerLeave?: (event: PointerEvent) => void107 onPointerLeaveCapture?: (event: PointerEvent) => void108 onPointerMove?: (event: PointerEvent) => void109 onPointerMoveCapture?: (event: PointerEvent) => void110 onPointerOut?: (event: PointerEvent) => void111 onPointerOutCapture?: (event: PointerEvent) => void112 onPointerOver?: (event: PointerEvent) => void113 onPointerOverCapture?: (event: PointerEvent) => void114 onPointerUp?: (event: PointerEvent) => void115 onPointerUpCapture?: (event: PointerEvent) => void116 onTouchCancel?: (event: TouchEvent) => void117 onTouchCancelCapture?: (event: TouchEvent) => void118 onTouchEnd?: (event: TouchEvent) => void119 onTouchEndCapture?: (event: TouchEvent) => void120 onTouchMove?: (event: TouchEvent) => void121 onTouchMoveCapture?: (event: TouchEvent) => void122 onTouchStart?: (event: TouchEvent) => void123 onTouchStartCapture?: (event: TouchEvent) => void124 onTransitionCancel?: (event: TransitionEvent) => void125 onTransitionCancelCapture?: (event: TransitionEvent) => void126 onTransitionEnd?: (event: TransitionEvent) => void127 onTransitionEndCapture?: (event: TransitionEvent) => void128 onTransitionRun?: (event: TransitionEvent) => void129 onTransitionRunCapture?: (event: TransitionEvent) => void130 onTransitionStart?: (event: TransitionEvent) => void131 onTransitionStartCapture?: (event: TransitionEvent) => void132 onFormData?: (event: FormDataEvent) => void133 onFormDataCapture?: (event: FormDataEvent) => void134 onReset?: (event: Event) => void135 onResetCapture?: (event: Event) => void136 onSubmit?: (event: Event) => void137 onSubmitCapture?: (event: Event) => void138 onInvalid?: (event: Event) => void139 onInvalidCapture?: (event: Event) => void140 onSelect?: (event: Event) => void141 onSelectCapture?: (event: Event) => void142 onSelectChange?: (event: Event) => void143 onSelectChangeCapture?: (event: Event) => void144 onInput?: (event: InputEvent) => void145 onInputCapture?: (event: InputEvent) => void146 onBeforeInput?: (event: InputEvent) => void147 onBeforeInputCapture?: (event: InputEvent) => void148 onChange?: (event: Event) => void149 onChangeCapture?: (event: Event) => void150 }151152 export interface HTMLAttributes extends JSXAttributes, EventAttributes, AnyAttributes {153 accesskey?: string | undefined154 autocapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined155 autofocus?: boolean | undefined156 class?: string | Promise<string> | undefined157 contenteditable?: boolean | 'inherit' | 'plaintext-only' | undefined158 contextmenu?: string | undefined159 dir?: string | undefined160 draggable?: 'true' | 'false' | boolean | undefined161 enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined162 hidden?: boolean | undefined163 id?: string | undefined164 inert?: boolean | undefined165 inputmode?:166 | 'none'167 | 'text'168 | 'tel'169 | 'url'170 | 'email'171 | 'numeric'172 | 'decimal'173 | 'search'174 | undefined175 is?: string | undefined176 itemid?: string | undefined177 itemprop?: string | undefined178 itemref?: string | undefined179 itemscope?: boolean | undefined180 itemtype?: string | undefined181 lang?: string | undefined182 nonce?: string | undefined183 placeholder?: string | undefined184 /** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */185 popover?: boolean | 'auto' | 'manual' | undefined186 slot?: string | undefined187 spellcheck?: boolean | undefined188 style?: CSSProperties | string | undefined189 tabindex?: number | undefined190 title?: string | undefined191 translate?: 'yes' | 'no' | undefined192 itemProp?: string | undefined193 }194195 type HTMLAttributeReferrerPolicy =196 | ''197 | 'no-referrer'198 | 'no-referrer-when-downgrade'199 | 'origin'200 | 'origin-when-cross-origin'201 | 'same-origin'202 | 'strict-origin'203 | 'strict-origin-when-cross-origin'204 | 'unsafe-url'205206 type HTMLAttributeAnchorTarget = StringLiteralUnion<'_self' | '_blank' | '_parent' | '_top'>207208 interface AnchorHTMLAttributes extends HTMLAttributes {209 download?: string | boolean | undefined210 href?: string | undefined211 hreflang?: string | undefined212 media?: string | undefined213 ping?: string | undefined214 target?: HTMLAttributeAnchorTarget | undefined215 type?: StringLiteralUnion<BaseMime> | undefined216 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined217 }218219 interface AudioHTMLAttributes extends MediaHTMLAttributes {}220221 interface AreaHTMLAttributes extends HTMLAttributes {222 alt?: string | undefined223 coords?: string | undefined224 download?: string | boolean | undefined225 href?: string | undefined226 hreflang?: string | undefined227 media?: string | undefined228 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined229 shape?: string | undefined230 target?: HTMLAttributeAnchorTarget | undefined231 }232233 interface BaseHTMLAttributes extends HTMLAttributes {234 href?: string | undefined235 target?: HTMLAttributeAnchorTarget | undefined236 }237238 interface BlockquoteHTMLAttributes extends HTMLAttributes {239 cite?: string | undefined240 }241242 /** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */243 type HTMLAttributePopoverTargetAction = 'show' | 'hide' | 'toggle'244245 interface ButtonHTMLAttributes extends HTMLAttributes {246 disabled?: boolean | undefined247 form?: string | undefined248 formenctype?: HTMLAttributeFormEnctype | undefined249 formmethod?: HTMLAttributeFormMethod | undefined250 formnovalidate?: boolean | undefined251 formtarget?: HTMLAttributeAnchorTarget | undefined252 name?: string | undefined253 type?: 'submit' | 'reset' | 'button' | undefined254 value?: string | ReadonlyArray<string> | number | undefined255 popovertarget?: string | undefined256 popovertargetaction?: HTMLAttributePopoverTargetAction | undefined257258 // React 19 compatibility259 formAction?: string | Function | undefined260 }261262 interface CanvasHTMLAttributes extends HTMLAttributes {263 height?: number | string | undefined264 width?: number | string | undefined265 }266267 interface ColHTMLAttributes extends HTMLAttributes {268 span?: number | undefined269 width?: number | string | undefined270 }271272 interface ColgroupHTMLAttributes extends HTMLAttributes {273 span?: number | undefined274 }275276 interface DataHTMLAttributes extends HTMLAttributes {277 value?: string | ReadonlyArray<string> | number | undefined278 }279280 interface DetailsHTMLAttributes extends HTMLAttributes {281 open?: boolean | undefined282 }283284 interface DelHTMLAttributes extends HTMLAttributes {285 cite?: string | undefined286 dateTime?: string | undefined287 }288289 interface DialogHTMLAttributes extends HTMLAttributes {290 open?: boolean | undefined291 }292293 interface EmbedHTMLAttributes extends HTMLAttributes {294 height?: number | string | undefined295 src?: string | undefined296 type?: StringLiteralUnion<BaseMime> | undefined297 width?: number | string | undefined298 }299300 interface FieldsetHTMLAttributes extends HTMLAttributes {301 disabled?: boolean | undefined302 form?: string | undefined303 name?: string | undefined304 }305306 /** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#method */307 type HTMLAttributeFormMethod = 'get' | 'post' | 'dialog'308 /** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#enctype */309 type HTMLAttributeFormEnctype =310 | 'application/x-www-form-urlencoded'311 | 'multipart/form-data'312 | 'text/plain'313 /** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#autocomplete */314 type HTMLAttributeFormAutocomplete = 'on' | 'off'315316 interface FormHTMLAttributes extends HTMLAttributes {317 'accept-charset'?: StringLiteralUnion<'utf-8'> | undefined318 autocomplete?: HTMLAttributeFormAutocomplete | undefined319 enctype?: HTMLAttributeFormEnctype | undefined320 method?: HTMLAttributeFormMethod | undefined321 name?: string | undefined322 novalidate?: boolean | undefined323 target?: HTMLAttributeAnchorTarget | undefined324325 // React 19 compatibility326 action?: string | Function | undefined327 }328329 interface HtmlHTMLAttributes extends HTMLAttributes {330 manifest?: string | undefined331 }332333 interface IframeHTMLAttributes extends HTMLAttributes {334 allow?: string | undefined335 allowfullscreen?: boolean | undefined336 height?: number | string | undefined337 loading?: 'eager' | 'lazy' | undefined338 name?: string | undefined339 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined340 sandbox?: string | undefined341 seamless?: boolean | undefined342 src?: string | undefined343 srcdoc?: string | undefined344 width?: number | string | undefined345 }346347 interface ImgHTMLAttributes extends HTMLAttributes {348 alt?: string | undefined349 crossorigin?: CrossOrigin350 decoding?: 'async' | 'auto' | 'sync' | undefined351 height?: number | string | undefined352 loading?: 'eager' | 'lazy' | undefined353 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined354 sizes?: string | undefined355 src?: string | undefined356 srcset?: string | undefined357 usemap?: string | undefined358 width?: number | string | undefined359 }360361 interface InsHTMLAttributes extends HTMLAttributes {362 cite?: string | undefined363 datetime?: string | undefined364 }365366 type HTMLInputTypeAttribute = StringLiteralUnion<367 | 'button'368 | 'checkbox'369 | 'color'370 | 'date'371 | 'datetime-local'372 | 'email'373 | 'file'374 | 'hidden'375 | 'image'376 | 'month'377 | 'number'378 | 'password'379 | 'radio'380 | 'range'381 | 'reset'382 | 'search'383 | 'submit'384 | 'tel'385 | 'text'386 | 'time'387 | 'url'388 | 'week'389 >390 type AutoFillAddressKind = 'billing' | 'shipping'391 type AutoFillBase = '' | 'off' | 'on'392 type AutoFillContactField =393 | 'email'394 | 'tel'395 | 'tel-area-code'396 | 'tel-country-code'397 | 'tel-extension'398 | 'tel-local'399 | 'tel-local-prefix'400 | 'tel-local-suffix'401 | 'tel-national'402 type AutoFillContactKind = 'home' | 'mobile' | 'work'403 type AutoFillCredentialField = 'webauthn'404 type AutoFillNormalField =405 | 'additional-name'406 | 'address-level1'407 | 'address-level2'408 | 'address-level3'409 | 'address-level4'410 | 'address-line1'411 | 'address-line2'412 | 'address-line3'413 | 'bday-day'414 | 'bday-month'415 | 'bday-year'416 | 'cc-csc'417 | 'cc-exp'418 | 'cc-exp-month'419 | 'cc-exp-year'420 | 'cc-family-name'421 | 'cc-given-name'422 | 'cc-name'423 | 'cc-number'424 | 'cc-type'425 | 'country'426 | 'country-name'427 | 'current-password'428 | 'family-name'429 | 'given-name'430 | 'honorific-prefix'431 | 'honorific-suffix'432 | 'name'433 | 'new-password'434 | 'one-time-code'435 | 'organization'436 | 'postal-code'437 | 'street-address'438 | 'transaction-amount'439 | 'transaction-currency'440 | 'username'441 type OptionalPrefixToken<T extends string> = `${T} ` | ''442 type OptionalPostfixToken<T extends string> = ` ${T}` | ''443 type AutoFillField =444 | AutoFillNormalField445 | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`446 type AutoFillSection = `section-${string}`447 type AutoFill =448 | AutoFillBase449 | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`450451 interface InputHTMLAttributes extends HTMLAttributes {452 accept?: string | undefined453 alt?: string | undefined454 autocomplete?: StringLiteralUnion<AutoFill> | undefined455 capture?: boolean | 'user' | 'environment' | undefined // https://www.w3.org/TR/html-media-capture/#the-capture-attribute456 checked?: boolean | undefined457 disabled?: boolean | undefined458 form?: string | undefined459 formenctype?: HTMLAttributeFormEnctype | undefined460 formmethod?: HTMLAttributeFormMethod | undefined461 formnovalidate?: boolean | undefined462 formtarget?: HTMLAttributeAnchorTarget | undefined463 height?: number | string | undefined464 list?: string | undefined465 max?: number | string | undefined466 maxlength?: number | undefined467 min?: number | string | undefined468 minlength?: number | undefined469 multiple?: boolean | undefined470 name?: string | undefined471 pattern?: string | undefined472 placeholder?: string | undefined473 readonly?: boolean | undefined474 required?: boolean | undefined475 size?: number | undefined476 src?: string | undefined477 step?: number | string | undefined478 type?: HTMLInputTypeAttribute | undefined479 value?: string | ReadonlyArray<string> | number | undefined480 width?: number | string | undefined481 popovertarget?: string | undefined482 popovertargetaction?: HTMLAttributePopoverTargetAction | undefined483484 // React 19 compatibility485 formAction?: string | Function | undefined486 }487488 interface KeygenHTMLAttributes extends HTMLAttributes {489 challenge?: string | undefined490 disabled?: boolean | undefined491 form?: string | undefined492 keytype?: string | undefined493 name?: string | undefined494 }495496 interface LabelHTMLAttributes extends HTMLAttributes {497 form?: string | undefined498 for?: string | undefined499 }500501 interface LiHTMLAttributes extends HTMLAttributes {502 value?: string | ReadonlyArray<string> | number | undefined503 }504505 interface LinkHTMLAttributes extends HTMLAttributes {506 as?: string | undefined507 crossorigin?: CrossOrigin508 href?: string | undefined509 hreflang?: string | undefined510 integrity?: string | undefined511 media?: string | undefined512 imagesrcset?: string | undefined513 imagesizes?: string | undefined514 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined515 sizes?: string | undefined516 type?: StringLiteralUnion<BaseMime> | undefined517 charSet?: string | undefined518519 // React 19 compatibility520 rel?: string | undefined521 precedence?: string | undefined522 title?: string | undefined523 disabled?: boolean | undefined524 onError?: ((event: Event) => void) | undefined525 onLoad?: ((event: Event) => void) | undefined526 blocking?: 'render' | undefined527 }528529 interface MapHTMLAttributes extends HTMLAttributes {530 name?: string | undefined531 }532533 interface MenuHTMLAttributes extends HTMLAttributes {534 type?: string | undefined535 }536537 interface MediaHTMLAttributes extends HTMLAttributes {538 autoplay?: boolean | undefined539 controls?: boolean | undefined540 controlslist?: string | undefined541 crossorigin?: CrossOrigin542 loop?: boolean | undefined543 mediagroup?: string | undefined544 muted?: boolean | undefined545 playsinline?: boolean | undefined546 preload?: string | undefined547 src?: string | undefined548 }549550 /**551 * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#http-equiv552 */553 type MetaHttpEquiv =554 | 'content-security-policy'555 | 'content-type'556 | 'default-style'557 | 'x-ua-compatible'558 | 'refresh'559 /**560 * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name561 */562 type MetaName =563 | 'application-name'564 | 'author'565 | 'description'566 | 'generator'567 | 'keywords'568 | 'referrer'569 | 'theme-color'570 | 'color-scheme'571 | 'viewport'572 | 'creator'573 | 'googlebot'574 | 'publisher'575 | 'robots'576 /**577 * @see https://ogp.me/578 */579 type MetaProperty =580 | 'og:title'581 | 'og:type'582 | 'og:image'583 | 'og:url'584 | 'og:audio'585 | 'og:description'586 | 'og:determiner'587 | 'og:locale'588 | 'og:locale:alternate'589 | 'og:site_name'590 | 'og:video'591 | 'og:image:url'592 | 'og:image:secure_url'593 | 'og:image:type'594 | 'og:image:width'595 | 'og:image:height'596 | 'og:image:alt'597 interface MetaHTMLAttributes extends HTMLAttributes {598 charset?: StringLiteralUnion<'utf-8'> | undefined599 'http-equiv'?: StringLiteralUnion<MetaHttpEquiv> | undefined600 name?: StringLiteralUnion<MetaName> | undefined601 media?: string | undefined602 content?: string | undefined603 property?: StringLiteralUnion<MetaProperty> | undefined604605 // React 19 compatibility606 httpEquiv?: StringLiteralUnion<MetaHttpEquiv> | undefined607 }608609 interface MeterHTMLAttributes extends HTMLAttributes {610 form?: string | undefined611 high?: number | undefined612 low?: number | undefined613 max?: number | string | undefined614 min?: number | string | undefined615 optimum?: number | undefined616 value?: string | ReadonlyArray<string> | number | undefined617 }618619 interface QuoteHTMLAttributes extends HTMLAttributes {620 cite?: string | undefined621 }622623 interface ObjectHTMLAttributes extends HTMLAttributes {624 data?: string | undefined625 form?: string | undefined626 height?: number | string | undefined627 name?: string | undefined628 type?: StringLiteralUnion<BaseMime> | undefined629 usemap?: string | undefined630 width?: number | string | undefined631 }632633 interface OlHTMLAttributes extends HTMLAttributes {634 reversed?: boolean | undefined635 start?: number | undefined636 type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined637 }638639 interface OptgroupHTMLAttributes extends HTMLAttributes {640 disabled?: boolean | undefined641 label?: string | undefined642 }643644 interface OptionHTMLAttributes extends HTMLAttributes {645 disabled?: boolean | undefined646 label?: string | undefined647 selected?: boolean | undefined648 value?: string | ReadonlyArray<string> | number | undefined649 }650651 interface OutputHTMLAttributes extends HTMLAttributes {652 form?: string | undefined653 for?: string | undefined654 name?: string | undefined655 }656657 interface ParamHTMLAttributes extends HTMLAttributes {658 name?: string | undefined659 value?: string | ReadonlyArray<string> | number | undefined660 }661662 interface ProgressHTMLAttributes extends HTMLAttributes {663 max?: number | string | undefined664 value?: string | ReadonlyArray<string> | number | undefined665 }666667 interface SlotHTMLAttributes extends HTMLAttributes {668 name?: string | undefined669 }670671 interface ScriptHTMLAttributes extends HTMLAttributes {672 async?: boolean | undefined673 crossorigin?: CrossOrigin674 defer?: boolean | undefined675 integrity?: string | undefined676 nomodule?: boolean | undefined677 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined678 src?: string | undefined679 /**680 * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type681 */682 type?: StringLiteralUnion<'' | 'text/javascript' | 'importmap' | 'module'> | undefined683684 // React 19 compatibility685 crossOrigin?: CrossOrigin686 fetchPriority?: string | undefined687 noModule?: boolean | undefined688 referrer?: HTMLAttributeReferrerPolicy | undefined689 onError?: ((event: Event) => void) | undefined690 onLoad?: ((event: Event) => void) | undefined691 blocking?: 'render' | undefined692 }693694 interface SelectHTMLAttributes extends HTMLAttributes {695 autocomplete?: string | undefined696 disabled?: boolean | undefined697 form?: string | undefined698 multiple?: boolean | undefined699 name?: string | undefined700 required?: boolean | undefined701 size?: number | undefined702 value?: string | ReadonlyArray<string> | number | undefined703 }704705 type MediaMime = BaseMime & (`image/${string}` | `audio/${string}` | `video/${string}`)706 interface SourceHTMLAttributes extends HTMLAttributes {707 height?: number | string | undefined708 media?: string | undefined709 sizes?: string | undefined710 src?: string | undefined711 srcset?: string | undefined712 type?: StringLiteralUnion<MediaMime> | undefined713 width?: number | string | undefined714 }715716 interface StyleHTMLAttributes extends HTMLAttributes {717 media?: string | undefined718 scoped?: boolean | undefined719 /**720 * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#type721 */722 type?: '' | 'text/css' | undefined723724 // React 19 compatibility725 href?: string | undefined726 precedence?: string | undefined727 title?: string | undefined728 disabled?: boolean | undefined729 blocking?: 'render' | undefined730 }731732 interface TableHTMLAttributes extends HTMLAttributes {733 align?: 'left' | 'center' | 'right' | undefined734 bgcolor?: string | undefined735 border?: number | undefined736 cellpadding?: number | string | undefined737 cellspacing?: number | string | undefined738 frame?: boolean | undefined739 rules?: 'none' | 'groups' | 'rows' | 'columns' | 'all' | undefined740 summary?: string | undefined741 width?: number | string | undefined742 }743744 interface TextareaHTMLAttributes extends HTMLAttributes {745 autocomplete?: string | undefined746 cols?: number | undefined747 dirname?: string | undefined748 disabled?: boolean | undefined749 form?: string | undefined750 maxlength?: number | undefined751 minlength?: number | undefined752 name?: string | undefined753 placeholder?: string | undefined754 readonly?: boolean | undefined755 required?: boolean | undefined756 rows?: number | undefined757 value?: string | ReadonlyArray<string> | number | undefined758 wrap?: string | undefined759 }760761 interface TdHTMLAttributes extends HTMLAttributes {762 align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined763 colspan?: number | undefined764 headers?: string | undefined765 rowspan?: number | undefined766 scope?: string | undefined767 abbr?: string | undefined768 height?: number | string | undefined769 width?: number | string | undefined770 valign?: 'top' | 'middle' | 'bottom' | 'baseline' | undefined771 }772773 interface ThHTMLAttributes extends HTMLAttributes {774 align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined775 colspan?: number | undefined776 headers?: string | undefined777 rowspan?: number | undefined778 scope?: 'row' | 'col' | 'rowgroup' | 'colgroup' | string | undefined779 abbr?: string | undefined780 }781782 interface TimeHTMLAttributes extends HTMLAttributes {783 datetime?: string | undefined784 }785786 interface TrackHTMLAttributes extends HTMLAttributes {787 default?: boolean | undefined788 kind?: string | undefined789 label?: string | undefined790 src?: string | undefined791 srclang?: string | undefined792 }793794 interface VideoHTMLAttributes extends MediaHTMLAttributes {795 height?: number | string | undefined796 playsinline?: boolean | undefined797 poster?: string | undefined798 width?: number | string | undefined799 disablePictureInPicture?: boolean | undefined800 disableRemotePlayback?: boolean | undefined801 }802803 export interface IntrinsicElements {804 a: AnchorHTMLAttributes805 abbr: HTMLAttributes806 address: HTMLAttributes807 area: AreaHTMLAttributes808 article: HTMLAttributes809 aside: HTMLAttributes810 audio: AudioHTMLAttributes811 b: HTMLAttributes812 base: BaseHTMLAttributes813 bdi: HTMLAttributes814 bdo: HTMLAttributes815 big: HTMLAttributes816 blockquote: BlockquoteHTMLAttributes817 body: HTMLAttributes818 br: HTMLAttributes819 button: ButtonHTMLAttributes820 canvas: CanvasHTMLAttributes821 caption: HTMLAttributes822 center: HTMLAttributes823 cite: HTMLAttributes824 code: HTMLAttributes825 col: ColHTMLAttributes826 colgroup: ColgroupHTMLAttributes827 data: DataHTMLAttributes828 datalist: HTMLAttributes829 dd: HTMLAttributes830 del: DelHTMLAttributes831 details: DetailsHTMLAttributes832 dfn: HTMLAttributes833 dialog: DialogHTMLAttributes834 div: HTMLAttributes835 dl: HTMLAttributes836 dt: HTMLAttributes837 em: HTMLAttributes838 embed: EmbedHTMLAttributes839 fieldset: FieldsetHTMLAttributes840 figcaption: HTMLAttributes841 figure: HTMLAttributes842 footer: HTMLAttributes843 form: FormHTMLAttributes844 h1: HTMLAttributes845 h2: HTMLAttributes846 h3: HTMLAttributes847 h4: HTMLAttributes848 h5: HTMLAttributes849 h6: HTMLAttributes850 head: HTMLAttributes851 header: HTMLAttributes852 hgroup: HTMLAttributes853 hr: HTMLAttributes854 html: HtmlHTMLAttributes855 i: HTMLAttributes856 iframe: IframeHTMLAttributes857 img: ImgHTMLAttributes858 input: InputHTMLAttributes859 ins: InsHTMLAttributes860 kbd: HTMLAttributes861 keygen: KeygenHTMLAttributes862 label: LabelHTMLAttributes863 legend: HTMLAttributes864 li: LiHTMLAttributes865 link: LinkHTMLAttributes866 main: HTMLAttributes867 map: MapHTMLAttributes868 mark: HTMLAttributes869 menu: MenuHTMLAttributes870 menuitem: HTMLAttributes871 meta: MetaHTMLAttributes872 meter: MeterHTMLAttributes873 nav: HTMLAttributes874 noscript: HTMLAttributes875 object: ObjectHTMLAttributes876 ol: OlHTMLAttributes877 optgroup: OptgroupHTMLAttributes878 option: OptionHTMLAttributes879 output: OutputHTMLAttributes880 p: HTMLAttributes881 param: ParamHTMLAttributes882 picture: HTMLAttributes883 pre: HTMLAttributes884 progress: ProgressHTMLAttributes885 q: QuoteHTMLAttributes886 rp: HTMLAttributes887 rt: HTMLAttributes888 ruby: HTMLAttributes889 s: HTMLAttributes890 samp: HTMLAttributes891 search: HTMLAttributes892 slot: SlotHTMLAttributes893 script: ScriptHTMLAttributes894 section: HTMLAttributes895 select: SelectHTMLAttributes896 small: HTMLAttributes897 source: SourceHTMLAttributes898 span: HTMLAttributes899 strong: HTMLAttributes900 style: StyleHTMLAttributes901 sub: HTMLAttributes902 summary: HTMLAttributes903 sup: HTMLAttributes904 table: TableHTMLAttributes905 template: HTMLAttributes906 tbody: HTMLAttributes907 td: TdHTMLAttributes908 textarea: TextareaHTMLAttributes909 tfoot: HTMLAttributes910 th: ThHTMLAttributes911 thead: HTMLAttributes912 time: TimeHTMLAttributes913 title: HTMLAttributes914 tr: HTMLAttributes915 track: TrackHTMLAttributes916 u: HTMLAttributes917 ul: HTMLAttributes918 var: HTMLAttributes919 video: VideoHTMLAttributes920 wbr: HTMLAttributes921 }922}923924export interface IntrinsicElements extends JSX.IntrinsicElements {}