types/jsx.d.ts TYPESCRIPT 1,354 lines View on github.com → Search inside
1// This code is based on react definition in DefinitelyTyped published under the MIT license.2//      Repository: https://github.com/DefinitelyTyped/DefinitelyTyped3//      Path in the repository: types/react/index.d.ts4//5// Copyrights of original definition are:6//      AssureSign <http://www.assuresign.com>7//      Microsoft <https://microsoft.com>8//      John Reilly <https://github.com/johnnyreilly>9//      Benoit Benezech <https://github.com/bbenezech>10//      Patricio Zavolinsky <https://github.com/pzavolinsky>11//      Digiguru <https://github.com/digiguru>12//      Eric Anderson <https://github.com/ericanderson>13//      Dovydas Navickas <https://github.com/DovydasNavickas>14//      Josh Rutherford <https://github.com/theruther4d>15//      Guilherme Hübner <https://github.com/guilhermehubner>16//      Ferdy Budhidharma <https://github.com/ferdaber>17//      Johann Rakotoharisoa <https://github.com/jrakotoharisoa>18//      Olivier Pascal <https://github.com/pascaloliv>19//      Martin Hochel <https://github.com/hotell>20//      Frank Li <https://github.com/franklixuefei>21//      Jessica Franco <https://github.com/Jessidhia>22//      Saransh Kataria <https://github.com/saranshkataria>23//      Kanitkorn Sujautra <https://github.com/lukyth>24//      Sebastian Silbermann <https://github.com/eps1lon>2526import * as CSS from 'csstype'2728export interface CSSProperties29  extends CSS.Properties<string | number>,30    CSS.PropertiesHyphen<string | number> {31  /**32   * The index signature was removed to enable closed typing for style33   * using CSSType. You're able to use type assertion or module augmentation34   * to add properties or an index signature of your own.35   *36   * For examples and more information, visit:37   * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors38   */39  [v: `--${string}`]: string | number | undefined40}4142type Booleanish = boolean | 'true' | 'false'43type Numberish = number | string4445// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/46interface AriaAttributes {47  /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */48  'aria-activedescendant'?: string49  /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */50  'aria-atomic'?: Booleanish51  /**52   * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be53   * presented if they are made.54   */55  'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both'56  /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */57  'aria-busy'?: Booleanish58  /**59   * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.60   * @see aria-pressed @see aria-selected.61   */62  'aria-checked'?: Booleanish | 'mixed'63  /**64   * Defines the total number of columns in a table, grid, or treegrid.65   * @see aria-colindex.66   */67  'aria-colcount'?: Numberish68  /**69   * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.70   * @see aria-colcount @see aria-colspan.71   */72  'aria-colindex'?: Numberish73  /**74   * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.75   * @see aria-colindex @see aria-rowspan.76   */77  'aria-colspan'?: Numberish78  /**79   * Identifies the element (or elements) whose contents or presence are controlled by the current element.80   * @see aria-owns.81   */82  'aria-controls'?: string83  /** Indicates the element that represents the current item within a container or set of related elements. */84  'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time'85  /**86   * Identifies the element (or elements) that describes the object.87   * @see aria-labelledby88   */89  'aria-describedby'?: string90  /**91   * Identifies the element that provides a detailed, extended description for the object.92   * @see aria-describedby.93   */94  'aria-details'?: string95  /**96   * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.97   * @see aria-hidden @see aria-readonly.98   */99  'aria-disabled'?: Booleanish100  /**101   * Indicates what functions can be performed when a dragged object is released on the drop target.102   * @deprecated in ARIA 1.1103   */104  'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup'105  /**106   * Identifies the element that provides an error message for the object.107   * @see aria-invalid @see aria-describedby.108   */109  'aria-errormessage'?: string110  /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */111  'aria-expanded'?: Booleanish112  /**113   * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,114   * allows assistive technology to override the general default of reading in document source order.115   */116  'aria-flowto'?: string117  /**118   * Indicates an element's "grabbed" state in a drag-and-drop operation.119   * @deprecated in ARIA 1.1120   */121  'aria-grabbed'?: Booleanish122  /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */123  'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'124  /**125   * Indicates whether the element is exposed to an accessibility API.126   * @see aria-disabled.127   */128  'aria-hidden'?: Booleanish129  /**130   * Indicates the entered value does not conform to the format expected by the application.131   * @see aria-errormessage.132   */133  'aria-invalid'?: Booleanish | 'grammar' | 'spelling'134  /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */135  'aria-keyshortcuts'?: string136  /**137   * Defines a string value that labels the current element.138   * @see aria-labelledby.139   */140  'aria-label'?: string141  /**142   * Identifies the element (or elements) that labels the current element.143   * @see aria-describedby.144   */145  'aria-labelledby'?: string146  /** Defines the hierarchical level of an element within a structure. */147  'aria-level'?: Numberish148  /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */149  'aria-live'?: 'off' | 'assertive' | 'polite'150  /** Indicates whether an element is modal when displayed. */151  'aria-modal'?: Booleanish152  /** Indicates whether a text box accepts multiple lines of input or only a single line. */153  'aria-multiline'?: Booleanish154  /** Indicates that the user may select more than one item from the current selectable descendants. */155  'aria-multiselectable'?: Booleanish156  /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */157  'aria-orientation'?: 'horizontal' | 'vertical'158  /**159   * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship160   * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.161   * @see aria-controls.162   */163  'aria-owns'?: string164  /**165   * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.166   * A hint could be a sample value or a brief description of the expected format.167   */168  'aria-placeholder'?: string169  /**170   * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.171   * @see aria-setsize.172   */173  'aria-posinset'?: Numberish174  /**175   * Indicates the current "pressed" state of toggle buttons.176   * @see aria-checked @see aria-selected.177   */178  'aria-pressed'?: Booleanish | 'mixed'179  /**180   * Indicates that the element is not editable, but is otherwise operable.181   * @see aria-disabled.182   */183  'aria-readonly'?: Booleanish184  /**185   * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.186   * @see aria-atomic.187   */188  'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text'189  /** Indicates that user input is required on the element before a form may be submitted. */190  'aria-required'?: Booleanish191  /** Defines a human-readable, author-localized description for the role of an element. */192  'aria-roledescription'?: string193  /**194   * Defines the total number of rows in a table, grid, or treegrid.195   * @see aria-rowindex.196   */197  'aria-rowcount'?: Numberish198  /**199   * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.200   * @see aria-rowcount @see aria-rowspan.201   */202  'aria-rowindex'?: Numberish203  /**204   * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.205   * @see aria-rowindex @see aria-colspan.206   */207  'aria-rowspan'?: Numberish208  /**209   * Indicates the current "selected" state of various widgets.210   * @see aria-checked @see aria-pressed.211   */212  'aria-selected'?: Booleanish213  /**214   * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.215   * @see aria-posinset.216   */217  'aria-setsize'?: Numberish218  /** Indicates if items in a table or grid are sorted in ascending or descending order. */219  'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other'220  /** Defines the maximum allowed value for a range widget. */221  'aria-valuemax'?: Numberish222  /** Defines the minimum allowed value for a range widget. */223  'aria-valuemin'?: Numberish224  /**225   * Defines the current value for a range widget.226   * @see aria-valuetext.227   */228  'aria-valuenow'?: Numberish229  /** Defines the human readable text alternative of aria-valuenow for a range widget. */230  'aria-valuetext'?: string231}232233// Vue's style normalization supports nested arrays234export type StyleValue = string | CSSProperties | Array<StyleValue>235236export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {237  innerHTML?: string238239  class?: any240  style?: StyleValue241242  // Standard HTML Attributes243  accesskey?: string244  contenteditable?: Booleanish | 'inherit'245  contextmenu?: string246  dir?: string247  draggable?: Booleanish248  hidden?: Booleanish249  id?: string250  lang?: string251  placeholder?: string252  spellcheck?: Booleanish253  tabindex?: Numberish254  title?: string255  translate?: 'yes' | 'no'256257  // Unknown258  radiogroup?: string // <command>, <menuitem>259260  // WAI-ARIA261  role?: string262263  // RDFa Attributes264  about?: string265  datatype?: string266  inlist?: any267  prefix?: string268  property?: string269  resource?: string270  typeof?: string271  vocab?: string272273  // Non-standard Attributes274  autocapitalize?: string275  autocorrect?: string276  autosave?: string277  color?: string278  itemprop?: string279  itemscope?: Booleanish280  itemtype?: string281  itemid?: string282  itemref?: string283  results?: Numberish284  security?: string285  unselectable?: 'on' | 'off'286287  // Living Standard288  /**289   * Hints at the type of data that might be entered by the user while editing the element or its contents290   * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute291   */292  inputmode?:293    | 'none'294    | 'text'295    | 'tel'296    | 'url'297    | 'email'298    | 'numeric'299    | 'decimal'300    | 'search'301  /**302   * Specify that a standard HTML element should behave like a defined custom built-in element303   * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is304   */305  is?: string306}307308export interface AnchorHTMLAttributes extends HTMLAttributes {309  download?: any310  href?: string311  hreflang?: string312  media?: string313  ping?: string314  rel?: string315  target?: string316  type?: string317  referrerpolicy?: string318}319320export interface AreaHTMLAttributes extends HTMLAttributes {321  alt?: string322  coords?: string323  download?: any324  href?: string325  hreflang?: string326  media?: string327  rel?: string328  shape?: string329  target?: string330}331332export interface AudioHTMLAttributes extends MediaHTMLAttributes {}333334export interface BaseHTMLAttributes extends HTMLAttributes {335  href?: string336  target?: string337}338339export interface BlockquoteHTMLAttributes extends HTMLAttributes {340  cite?: string341}342343export interface ButtonHTMLAttributes extends HTMLAttributes {344  autofocus?: Booleanish345  disabled?: Booleanish346  form?: string347  formaction?: string348  formenctype?: string349  formmethod?: string350  formnovalidate?: Booleanish351  formtarget?: string352  name?: string353  type?: 'submit' | 'reset' | 'button'354  value?: string | string[] | number355}356357export interface CanvasHTMLAttributes extends HTMLAttributes {358  height?: Numberish359  width?: Numberish360}361362export interface ColHTMLAttributes extends HTMLAttributes {363  span?: Numberish364  width?: Numberish365}366367export interface ColgroupHTMLAttributes extends HTMLAttributes {368  span?: Numberish369}370371export interface DataHTMLAttributes extends HTMLAttributes {372  value?: string | string[] | number373}374375export interface DetailsHTMLAttributes extends HTMLAttributes {376  open?: Booleanish377}378379export interface DelHTMLAttributes extends HTMLAttributes {380  cite?: string381  datetime?: string382}383384export interface DialogHTMLAttributes extends HTMLAttributes {385  open?: Booleanish386}387388export interface EmbedHTMLAttributes extends HTMLAttributes {389  height?: Numberish390  src?: string391  type?: string392  width?: Numberish393}394395export interface FieldsetHTMLAttributes extends HTMLAttributes {396  disabled?: Booleanish397  form?: string398  name?: string399}400401export interface FormHTMLAttributes extends HTMLAttributes {402  acceptcharset?: string403  action?: string404  autocomplete?: string405  enctype?: string406  method?: string407  name?: string408  novalidate?: Booleanish409  target?: string410}411412export interface HtmlHTMLAttributes extends HTMLAttributes {413  manifest?: string414}415416export interface IframeHTMLAttributes extends HTMLAttributes {417  allow?: string418  allowfullscreen?: Booleanish419  allowtransparency?: Booleanish420  frameborder?: Numberish421  height?: Numberish422  marginheight?: Numberish423  marginwidth?: Numberish424  name?: string425  referrerpolicy?: string426  sandbox?: string427  scrolling?: string428  seamless?: Booleanish429  src?: string430  srcdoc?: string431  width?: Numberish432}433434export interface ImgHTMLAttributes extends HTMLAttributes {435  alt?: string436  crossorigin?: 'anonymous' | 'use-credentials' | ''437  decoding?: 'async' | 'auto' | 'sync'438  height?: Numberish439  sizes?: string440  src?: string441  srcset?: string442  usemap?: string443  width?: Numberish444}445446export interface InsHTMLAttributes extends HTMLAttributes {447  cite?: string448  datetime?: string449}450451export interface InputHTMLAttributes extends HTMLAttributes {452  accept?: string453  alt?: string454  autocomplete?: string455  autofocus?: Booleanish456  capture?: boolean | 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute457  checked?: Booleanish | any[] | Set<any> // for IDE v-model multi-checkbox support458  crossorigin?: string459  disabled?: Booleanish460  form?: string461  formaction?: string462  formenctype?: string463  formmethod?: string464  formnovalidate?: Booleanish465  formtarget?: string466  height?: Numberish467  indeterminate?: boolean468  list?: string469  max?: Numberish470  maxlength?: Numberish471  min?: Numberish472  minlength?: Numberish473  multiple?: Booleanish474  name?: string475  pattern?: string476  placeholder?: string477  readonly?: Booleanish478  required?: Booleanish479  size?: Numberish480  src?: string481  step?: Numberish482  type?: string483  value?: any // we support :value to be bound to anything w/ v-model484  width?: Numberish485}486487export interface KeygenHTMLAttributes extends HTMLAttributes {488  autofocus?: Booleanish489  challenge?: string490  disabled?: Booleanish491  form?: string492  keytype?: string493  keyparams?: string494  name?: string495}496497export interface LabelHTMLAttributes extends HTMLAttributes {498  for?: string499  form?: string500}501502export interface LiHTMLAttributes extends HTMLAttributes {503  value?: string | string[] | number504}505506export interface LinkHTMLAttributes extends HTMLAttributes {507  as?: string508  crossorigin?: string509  href?: string510  hreflang?: string511  integrity?: string512  media?: string513  rel?: string514  sizes?: string515  type?: string516}517518export interface MapHTMLAttributes extends HTMLAttributes {519  name?: string520}521522export interface MenuHTMLAttributes extends HTMLAttributes {523  type?: string524}525526export interface MediaHTMLAttributes extends HTMLAttributes {527  autoplay?: Booleanish528  controls?: Booleanish529  controlslist?: string530  crossorigin?: string531  loop?: Booleanish532  mediagroup?: string533  muted?: Booleanish534  playsinline?: Booleanish535  preload?: string536  src?: string537}538539export interface MetaHTMLAttributes extends HTMLAttributes {540  charset?: string541  content?: string542  httpequiv?: string543  name?: string544}545546export interface MeterHTMLAttributes extends HTMLAttributes {547  form?: string548  high?: Numberish549  low?: Numberish550  max?: Numberish551  min?: Numberish552  optimum?: Numberish553  value?: string | string[] | number554}555556export interface QuoteHTMLAttributes extends HTMLAttributes {557  cite?: string558}559560export interface ObjectHTMLAttributes extends HTMLAttributes {561  classid?: string562  data?: string563  form?: string564  height?: Numberish565  name?: string566  type?: string567  usemap?: string568  width?: Numberish569  wmode?: string570}571572export interface OlHTMLAttributes extends HTMLAttributes {573  reversed?: Booleanish574  start?: Numberish575  type?: '1' | 'a' | 'A' | 'i' | 'I'576}577578export interface OptgroupHTMLAttributes extends HTMLAttributes {579  disabled?: Booleanish580  label?: string581}582583export interface OptionHTMLAttributes extends HTMLAttributes {584  disabled?: Booleanish585  label?: string586  selected?: Booleanish587  value?: any // we support :value to be bound to anything w/ v-model588}589590export interface OutputHTMLAttributes extends HTMLAttributes {591  for?: string592  form?: string593  name?: string594}595596export interface ParamHTMLAttributes extends HTMLAttributes {597  name?: string598  value?: string | string[] | number599}600601export interface ProgressHTMLAttributes extends HTMLAttributes {602  max?: Numberish603  value?: string | string[] | number604}605606export interface ScriptHTMLAttributes extends HTMLAttributes {607  async?: Booleanish608  charset?: string609  crossorigin?: string610  defer?: Booleanish611  integrity?: string612  nomodule?: Booleanish613  nonce?: string614  src?: string615  type?: string616}617618export interface SelectHTMLAttributes extends HTMLAttributes {619  autocomplete?: string620  autofocus?: Booleanish621  disabled?: Booleanish622  form?: string623  multiple?: Booleanish624  name?: string625  required?: Booleanish626  size?: Numberish627  value?: any // we support :value to be bound to anything w/ v-model628}629630export interface SourceHTMLAttributes extends HTMLAttributes {631  media?: string632  sizes?: string633  src?: string634  srcset?: string635  type?: string636}637638export interface StyleHTMLAttributes extends HTMLAttributes {639  media?: string640  nonce?: string641  scoped?: Booleanish642  type?: string643}644645export interface TableHTMLAttributes extends HTMLAttributes {646  cellpadding?: Numberish647  cellspacing?: Numberish648  summary?: string649}650651export interface TextareaHTMLAttributes extends HTMLAttributes {652  autocomplete?: string653  autofocus?: Booleanish654  cols?: Numberish655  dirname?: string656  disabled?: Booleanish657  form?: string658  maxlength?: Numberish659  minlength?: Numberish660  name?: string661  placeholder?: string662  readonly?: boolean663  required?: Booleanish664  rows?: Numberish665  value?: string | string[] | number666  wrap?: string667}668669export interface TdHTMLAttributes extends HTMLAttributes {670  align?: 'left' | 'center' | 'right' | 'justify' | 'char'671  colspan?: Numberish672  headers?: string673  rowspan?: Numberish674  scope?: string675  valign?: 'top' | 'middle' | 'bottom' | 'baseline'676}677678export interface ThHTMLAttributes extends HTMLAttributes {679  align?: 'left' | 'center' | 'right' | 'justify' | 'char'680  colspan?: Numberish681  headers?: string682  rowspan?: Numberish683  scope?: string684}685686export interface TimeHTMLAttributes extends HTMLAttributes {687  datetime?: string688}689690export interface TrackHTMLAttributes extends HTMLAttributes {691  default?: Booleanish692  kind?: string693  label?: string694  src?: string695  srclang?: string696}697698export interface VideoHTMLAttributes extends MediaHTMLAttributes {699  height?: Numberish700  playsinline?: Booleanish701  poster?: string702  width?: Numberish703  disablePictureInPicture?: Booleanish704}705706export interface WebViewHTMLAttributes extends HTMLAttributes {707  allowfullscreen?: Booleanish708  allowpopups?: Booleanish709  autoFocus?: Booleanish710  autosize?: Booleanish711  blinkfeatures?: string712  disableblinkfeatures?: string713  disableguestresize?: Booleanish714  disablewebsecurity?: Booleanish715  guestinstance?: string716  httpreferrer?: string717  nodeintegration?: Booleanish718  partition?: string719  plugins?: Booleanish720  preload?: string721  src?: string722  useragent?: string723  webpreferences?: string724}725726export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {727  innerHTML?: string728729  /**730   * SVG Styling Attributes731   * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling732   */733  class?: any734  style?: StyleValue735736  color?: string737  height?: Numberish738  id?: string739  lang?: string740  max?: Numberish741  media?: string742  method?: string743  min?: Numberish744  name?: string745  target?: string746  type?: string747  width?: Numberish748749  // Other HTML properties supported by SVG elements in browsers750  role?: string751  tabindex?: Numberish752753  // SVG Specific attributes754  'accent-height'?: Numberish755  accumulate?: 'none' | 'sum'756  additive?: 'replace' | 'sum'757  'alignment-baseline'?:758    | 'auto'759    | 'baseline'760    | 'before-edge'761    | 'text-before-edge'762    | 'middle'763    | 'central'764    | 'after-edge'765    | 'text-after-edge'766    | 'ideographic'767    | 'alphabetic'768    | 'hanging'769    | 'mathematical'770    | 'inherit'771  allowReorder?: 'no' | 'yes'772  alphabetic?: Numberish773  amplitude?: Numberish774  'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated'775  ascent?: Numberish776  attributeName?: string777  attributeType?: string778  autoReverse?: Numberish779  azimuth?: Numberish780  baseFrequency?: Numberish781  'baseline-shift'?: Numberish782  baseProfile?: Numberish783  bbox?: Numberish784  begin?: Numberish785  bias?: Numberish786  by?: Numberish787  calcMode?: Numberish788  'cap-height'?: Numberish789  clip?: Numberish790  'clip-path'?: string791  clipPathUnits?: Numberish792  'clip-rule'?: Numberish793  'color-interpolation'?: Numberish794  'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit'795  'color-profile'?: Numberish796  'color-rendering'?: Numberish797  contentScriptType?: Numberish798  contentStyleType?: Numberish799  cursor?: Numberish800  cx?: Numberish801  cy?: Numberish802  d?: string803  decelerate?: Numberish804  descent?: Numberish805  diffuseConstant?: Numberish806  direction?: Numberish807  display?: Numberish808  divisor?: Numberish809  'dominant-baseline'?: Numberish810  dur?: Numberish811  dx?: Numberish812  dy?: Numberish813  edgeMode?: Numberish814  elevation?: Numberish815  'enable-background'?: Numberish816  end?: Numberish817  exponent?: Numberish818  externalResourcesRequired?: Numberish819  fill?: string820  'fill-opacity'?: Numberish821  'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit'822  filter?: string823  filterRes?: Numberish824  filterUnits?: Numberish825  'flood-color'?: Numberish826  'flood-opacity'?: Numberish827  focusable?: Numberish828  'font-family'?: string829  'font-size'?: Numberish830  'font-size-adjust'?: Numberish831  'font-stretch'?: Numberish832  'font-style'?: Numberish833  'font-variant'?: Numberish834  'font-weight'?: Numberish835  format?: Numberish836  from?: Numberish837  fx?: Numberish838  fy?: Numberish839  g1?: Numberish840  g2?: Numberish841  'glyph-name'?: Numberish842  'glyph-orientation-horizontal'?: Numberish843  'glyph-orientation-vertical'?: Numberish844  glyphRef?: Numberish845  gradientTransform?: string846  gradientUnits?: string847  hanging?: Numberish848  'horiz-adv-x'?: Numberish849  'horiz-origin-x'?: Numberish850  href?: string851  ideographic?: Numberish852  'image-rendering'?: Numberish853  in2?: Numberish854  in?: string855  intercept?: Numberish856  k1?: Numberish857  k2?: Numberish858  k3?: Numberish859  k4?: Numberish860  k?: Numberish861  kernelMatrix?: Numberish862  kernelUnitLength?: Numberish863  kerning?: Numberish864  keyPoints?: Numberish865  keySplines?: Numberish866  keyTimes?: Numberish867  lengthAdjust?: Numberish868  'letter-spacing'?: Numberish869  'lighting-color'?: Numberish870  limitingConeAngle?: Numberish871  local?: Numberish872  'marker-end'?: string873  markerHeight?: Numberish874  'marker-mid'?: string875  'marker-start'?: string876  markerUnits?: Numberish877  markerWidth?: Numberish878  mask?: string879  maskContentUnits?: Numberish880  maskUnits?: Numberish881  mathematical?: Numberish882  mode?: Numberish883  numOctaves?: Numberish884  offset?: Numberish885  opacity?: Numberish886  operator?: Numberish887  order?: Numberish888  orient?: Numberish889  orientation?: Numberish890  origin?: Numberish891  overflow?: Numberish892  'overline-position'?: Numberish893  'overline-thickness'?: Numberish894  'paint-order'?: Numberish895  'panose-1'?: Numberish896  pathLength?: Numberish897  patternContentUnits?: string898  patternTransform?: Numberish899  patternUnits?: string900  'pointer-events'?: Numberish901  points?: string902  pointsAtX?: Numberish903  pointsAtY?: Numberish904  pointsAtZ?: Numberish905  preserveAlpha?: Numberish906  preserveAspectRatio?: string907  primitiveUnits?: Numberish908  r?: Numberish909  radius?: Numberish910  refX?: Numberish911  refY?: Numberish912  renderingIntent?: Numberish913  repeatCount?: Numberish914  repeatDur?: Numberish915  requiredExtensions?: Numberish916  requiredFeatures?: Numberish917  restart?: Numberish918  result?: string919  rotate?: Numberish920  rx?: Numberish921  ry?: Numberish922  scale?: Numberish923  seed?: Numberish924  'shape-rendering'?: Numberish925  slope?: Numberish926  spacing?: Numberish927  specularConstant?: Numberish928  specularExponent?: Numberish929  speed?: Numberish930  spreadMethod?: string931  startOffset?: Numberish932  stdDeviation?: Numberish933  stemh?: Numberish934  stemv?: Numberish935  stitchTiles?: Numberish936  'stop-color'?: string937  'stop-opacity'?: Numberish938  'strikethrough-position'?: Numberish939  'strikethrough-thickness'?: Numberish940  string?: Numberish941  stroke?: string942  'stroke-dasharray'?: Numberish943  'stroke-dashoffset'?: Numberish944  'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit'945  'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit'946  'stroke-miterlimit'?: Numberish947  'stroke-opacity'?: Numberish948  'stroke-width'?: Numberish949  surfaceScale?: Numberish950  systemLanguage?: Numberish951  tableValues?: Numberish952  targetX?: Numberish953  targetY?: Numberish954  'text-anchor'?: string955  'text-decoration'?: Numberish956  textLength?: Numberish957  'text-rendering'?: Numberish958  to?: Numberish959  transform?: string960  u1?: Numberish961  u2?: Numberish962  'underline-position'?: Numberish963  'underline-thickness'?: Numberish964  unicode?: Numberish965  'unicode-bidi'?: Numberish966  'unicode-range'?: Numberish967  'unitsPer-em'?: Numberish968  'v-alphabetic'?: Numberish969  values?: string970  'vector-effect'?: Numberish971  version?: string972  'vert-adv-y'?: Numberish973  'vert-origin-x'?: Numberish974  'vert-origin-y'?: Numberish975  'v-hanging'?: Numberish976  'v-ideographic'?: Numberish977  viewBox?: string978  viewTarget?: Numberish979  visibility?: Numberish980  'v-mathematical'?: Numberish981  widths?: Numberish982  'word-spacing'?: Numberish983  'writing-mode'?: Numberish984  x1?: Numberish985  x2?: Numberish986  x?: Numberish987  xChannelSelector?: string988  'x-height'?: Numberish989  xlinkActuate?: string990  xlinkArcrole?: string991  xlinkHref?: string992  xlinkRole?: string993  xlinkShow?: string994  xlinkTitle?: string995  xlinkType?: string996  xmlns?: string997  y1?: Numberish998  y2?: Numberish999  y?: Numberish1000  yChannelSelector?: string1001  z?: Numberish1002  zoomAndPan?: string1003}10041005interface IntrinsicElementAttributes {1006  a: AnchorHTMLAttributes1007  abbr: HTMLAttributes1008  address: HTMLAttributes1009  area: AreaHTMLAttributes1010  article: HTMLAttributes1011  aside: HTMLAttributes1012  audio: AudioHTMLAttributes1013  b: HTMLAttributes1014  base: BaseHTMLAttributes1015  bdi: HTMLAttributes1016  bdo: HTMLAttributes1017  blockquote: BlockquoteHTMLAttributes1018  body: HTMLAttributes1019  br: HTMLAttributes1020  button: ButtonHTMLAttributes1021  canvas: CanvasHTMLAttributes1022  caption: HTMLAttributes1023  cite: HTMLAttributes1024  code: HTMLAttributes1025  col: ColHTMLAttributes1026  colgroup: ColgroupHTMLAttributes1027  data: DataHTMLAttributes1028  datalist: HTMLAttributes1029  dd: HTMLAttributes1030  del: DelHTMLAttributes1031  details: DetailsHTMLAttributes1032  dfn: HTMLAttributes1033  dialog: DialogHTMLAttributes1034  div: HTMLAttributes1035  dl: HTMLAttributes1036  dt: HTMLAttributes1037  em: HTMLAttributes1038  embed: EmbedHTMLAttributes1039  fieldset: FieldsetHTMLAttributes1040  figcaption: HTMLAttributes1041  figure: HTMLAttributes1042  footer: HTMLAttributes1043  form: FormHTMLAttributes1044  h1: HTMLAttributes1045  h2: HTMLAttributes1046  h3: HTMLAttributes1047  h4: HTMLAttributes1048  h5: HTMLAttributes1049  h6: HTMLAttributes1050  head: HTMLAttributes1051  header: HTMLAttributes1052  hgroup: HTMLAttributes1053  hr: HTMLAttributes1054  html: HtmlHTMLAttributes1055  i: HTMLAttributes1056  iframe: IframeHTMLAttributes1057  img: ImgHTMLAttributes1058  input: InputHTMLAttributes1059  ins: InsHTMLAttributes1060  kbd: HTMLAttributes1061  keygen: KeygenHTMLAttributes1062  label: LabelHTMLAttributes1063  legend: HTMLAttributes1064  li: LiHTMLAttributes1065  link: LinkHTMLAttributes1066  main: HTMLAttributes1067  map: MapHTMLAttributes1068  mark: HTMLAttributes1069  menu: MenuHTMLAttributes1070  meta: MetaHTMLAttributes1071  meter: MeterHTMLAttributes1072  nav: HTMLAttributes1073  noindex: HTMLAttributes1074  noscript: HTMLAttributes1075  object: ObjectHTMLAttributes1076  ol: OlHTMLAttributes1077  optgroup: OptgroupHTMLAttributes1078  option: OptionHTMLAttributes1079  output: OutputHTMLAttributes1080  p: HTMLAttributes1081  param: ParamHTMLAttributes1082  picture: HTMLAttributes1083  pre: HTMLAttributes1084  progress: ProgressHTMLAttributes1085  q: QuoteHTMLAttributes1086  rp: HTMLAttributes1087  rt: HTMLAttributes1088  ruby: HTMLAttributes1089  s: HTMLAttributes1090  samp: HTMLAttributes1091  script: ScriptHTMLAttributes1092  section: HTMLAttributes1093  select: SelectHTMLAttributes1094  small: HTMLAttributes1095  source: SourceHTMLAttributes1096  span: HTMLAttributes1097  strong: HTMLAttributes1098  style: StyleHTMLAttributes1099  sub: HTMLAttributes1100  summary: HTMLAttributes1101  sup: HTMLAttributes1102  table: TableHTMLAttributes1103  template: HTMLAttributes1104  tbody: HTMLAttributes1105  td: TdHTMLAttributes1106  textarea: TextareaHTMLAttributes1107  tfoot: HTMLAttributes1108  th: ThHTMLAttributes1109  thead: HTMLAttributes1110  time: TimeHTMLAttributes1111  title: HTMLAttributes1112  tr: HTMLAttributes1113  track: TrackHTMLAttributes1114  u: HTMLAttributes1115  ul: HTMLAttributes1116  var: HTMLAttributes1117  video: VideoHTMLAttributes1118  wbr: HTMLAttributes1119  webview: WebViewHTMLAttributes11201121  // SVG1122  svg: SVGAttributes11231124  animate: SVGAttributes1125  animateMotion: SVGAttributes1126  animateTransform: SVGAttributes1127  circle: SVGAttributes1128  clipPath: SVGAttributes1129  defs: SVGAttributes1130  desc: SVGAttributes1131  ellipse: SVGAttributes1132  feBlend: SVGAttributes1133  feColorMatrix: SVGAttributes1134  feComponentTransfer: SVGAttributes1135  feComposite: SVGAttributes1136  feConvolveMatrix: SVGAttributes1137  feDiffuseLighting: SVGAttributes1138  feDisplacementMap: SVGAttributes1139  feDistantLight: SVGAttributes1140  feDropShadow: SVGAttributes1141  feFlood: SVGAttributes1142  feFuncA: SVGAttributes1143  feFuncB: SVGAttributes1144  feFuncG: SVGAttributes1145  feFuncR: SVGAttributes1146  feGaussianBlur: SVGAttributes1147  feImage: SVGAttributes1148  feMerge: SVGAttributes1149  feMergeNode: SVGAttributes1150  feMorphology: SVGAttributes1151  feOffset: SVGAttributes1152  fePointLight: SVGAttributes1153  feSpecularLighting: SVGAttributes1154  feSpotLight: SVGAttributes1155  feTile: SVGAttributes1156  feTurbulence: SVGAttributes1157  filter: SVGAttributes1158  foreignObject: SVGAttributes1159  g: SVGAttributes1160  image: SVGAttributes1161  line: SVGAttributes1162  linearGradient: SVGAttributes1163  marker: SVGAttributes1164  mask: SVGAttributes1165  metadata: SVGAttributes1166  mpath: SVGAttributes1167  path: SVGAttributes1168  pattern: SVGAttributes1169  polygon: SVGAttributes1170  polyline: SVGAttributes1171  radialGradient: SVGAttributes1172  rect: SVGAttributes1173  stop: SVGAttributes1174  switch: SVGAttributes1175  symbol: SVGAttributes1176  text: SVGAttributes1177  textPath: SVGAttributes1178  tspan: SVGAttributes1179  use: SVGAttributes1180  view: SVGAttributes1181}11821183export interface Events {1184  // clipboard events1185  onCopy: ClipboardEvent1186  onCut: ClipboardEvent1187  onPaste: ClipboardEvent11881189  // composition events1190  onCompositionend: CompositionEvent1191  onCompositionstart: CompositionEvent1192  onCompositionupdate: CompositionEvent11931194  // drag drop events1195  onDrag: DragEvent1196  onDragend: DragEvent1197  onDragenter: DragEvent1198  onDragexit: DragEvent1199  onDragleave: DragEvent1200  onDragover: DragEvent1201  onDragstart: DragEvent1202  onDrop: DragEvent12031204  // focus events1205  onFocus: FocusEvent1206  onFocusin: FocusEvent1207  onFocusout: FocusEvent1208  onBlur: FocusEvent12091210  // form events1211  onChange: Event1212  onBeforeinput: Event1213  onInput: Event1214  onReset: Event1215  onSubmit: Event1216  onInvalid: Event12171218  // image events1219  onLoad: Event1220  onError: Event12211222  // keyboard events1223  onKeydown: KeyboardEvent1224  onKeypress: KeyboardEvent1225  onKeyup: KeyboardEvent12261227  // mouse events1228  onAuxclick: MouseEvent1229  onClick: MouseEvent1230  onContextmenu: MouseEvent1231  onDblclick: MouseEvent1232  onMousedown: MouseEvent1233  onMouseenter: MouseEvent1234  onMouseleave: MouseEvent1235  onMousemove: MouseEvent1236  onMouseout: MouseEvent1237  onMouseover: MouseEvent1238  onMouseup: MouseEvent12391240  // media events1241  onAbort: Event1242  onCanplay: Event1243  onCanplaythrough: Event1244  onDurationchange: Event1245  onEmptied: Event1246  onEncrypted: Event1247  onEnded: Event1248  onLoadeddata: Event1249  onLoadedmetadata: Event1250  onLoadstart: Event1251  onPause: Event1252  onPlay: Event1253  onPlaying: Event1254  onProgress: Event1255  onRatechange: Event1256  onSeeked: Event1257  onSeeking: Event1258  onStalled: Event1259  onSuspend: Event1260  onTimeupdate: Event1261  onVolumechange: Event1262  onWaiting: Event12631264  // selection events1265  onSelect: Event12661267  // UI events1268  onScroll: UIEvent12691270  // touch events1271  onTouchcancel: TouchEvent1272  onTouchend: TouchEvent1273  onTouchmove: TouchEvent1274  onTouchstart: TouchEvent12751276  // pointer events1277  onPointerdown: PointerEvent1278  onPointermove: PointerEvent1279  onPointerup: PointerEvent1280  onPointercancel: PointerEvent1281  onPointerenter: PointerEvent1282  onPointerleave: PointerEvent1283  onPointerover: PointerEvent1284  onPointerout: PointerEvent12851286  // wheel events1287  onWheel: WheelEvent12881289  // animation events1290  onAnimationstart: AnimationEvent1291  onAnimationend: AnimationEvent1292  onAnimationiteration: AnimationEvent12931294  // transition events1295  onTransitionend: TransitionEvent1296  onTransitionstart: TransitionEvent1297}12981299type EventHandlers<E> = {1300  [K in keyof E]?: E[K] extends (...args: any) => any1301    ? E[K]1302    : (payload: E[K]) => void1303}13041305type ReservedProps = {1306  key?: string | number | symbol1307  ref?: VNodeData['ref']1308  /**1309   * @deprecated Old named slot syntax has been deprecated, use the new syntax1310   * instead: `<template v-slot:name>`1311   * https://v2.vuejs.org/v2/guide/components-slots.html#Named-Slots1312   */1313  slot?: string1314}13151316type ElementAttrs<T> = T & ReservedProps13171318type NativeElements = {1319  [K in keyof IntrinsicElementAttributes]: ElementAttrs<1320    IntrinsicElementAttributes[K]1321  >1322}13231324import {1325  VNode,1326  VNodeData,1327  ComponentCustomProps,1328  AllowedComponentProps1329} from './vnode'13301331declare global {1332  namespace JSX {1333    interface Element extends VNode {}1334    interface ElementClass {1335      $props: {}1336    }1337    interface ElementAttributesProperty {1338      $props: {}1339    }1340    interface IntrinsicElements extends NativeElements {1341      // allow arbitrary elements1342      // @ts-ignore suppress ts:2374 = Duplicate string index signature.1343      [name: string]: any1344    }1345    interface IntrinsicAttributes1346      extends ReservedProps,1347        AllowedComponentProps,1348        ComponentCustomProps {}1349  }1350}13511352// suppress ts:26691353export {}

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.