Home / Type/ HTMLAttributes Type — vue Architecture

HTMLAttributes Type — vue Architecture

Architecture documentation for the HTMLAttributes type/interface in jsx.d.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e3b52dd8_c06a_d4e6_00db_cd6766f9f96e["HTMLAttributes"]
  08a2c658_413c_e849_2e9c_b45cc166d3c9["jsx.d.ts"]
  e3b52dd8_c06a_d4e6_00db_cd6766f9f96e -->|defined in| 08a2c658_413c_e849_2e9c_b45cc166d3c9
  style e3b52dd8_c06a_d4e6_00db_cd6766f9f96e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

types/jsx.d.ts lines 236–306

export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
  innerHTML?: string

  class?: any
  style?: StyleValue

  // Standard HTML Attributes
  accesskey?: string
  contenteditable?: Booleanish | 'inherit'
  contextmenu?: string
  dir?: string
  draggable?: Booleanish
  hidden?: Booleanish
  id?: string
  lang?: string
  placeholder?: string
  spellcheck?: Booleanish
  tabindex?: Numberish
  title?: string
  translate?: 'yes' | 'no'

  // Unknown
  radiogroup?: string // <command>, <menuitem>

  // WAI-ARIA
  role?: string

  // RDFa Attributes
  about?: string
  datatype?: string
  inlist?: any
  prefix?: string
  property?: string
  resource?: string
  typeof?: string
  vocab?: string

  // Non-standard Attributes
  autocapitalize?: string
  autocorrect?: string
  autosave?: string
  color?: string
  itemprop?: string
  itemscope?: Booleanish
  itemtype?: string
  itemid?: string
  itemref?: string
  results?: Numberish
  security?: string
  unselectable?: 'on' | 'off'

  // Living Standard
  /**
   * Hints at the type of data that might be entered by the user while editing the element or its contents
   * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
   */
  inputmode?:
    | 'none'
    | 'text'
    | 'tel'
    | 'url'
    | 'email'
    | 'numeric'
    | 'decimal'
    | 'search'
  /**
   * Specify that a standard HTML element should behave like a defined custom built-in element
   * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
   */
  is?: string
}

Defined In

Frequently Asked Questions

What is the HTMLAttributes type?
HTMLAttributes is a type/interface in the vue codebase, defined in types/jsx.d.ts.
Where is HTMLAttributes defined?
HTMLAttributes is defined in types/jsx.d.ts at line 236.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free