Home / Type/ HTMLAttributes Type — astro Architecture

HTMLAttributes Type — astro Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/language-tools/language-server/types/astro-jsx.d.ts lines 497–567

	interface HTMLAttributes extends AriaAttributes, DOMAttributes, AstroBuiltinAttributes {
		// Standard HTML Attributes
		accesskey?: string | undefined | null;
		autocapitalize?: string | undefined | null;
		autofocus?: boolean | string | undefined | null;
		class?: string | undefined | null;
		contenteditable?: 'true' | 'false' | boolean | 'inherit' | string | undefined | null;
		dir?: string | undefined | null;
		draggable?: 'true' | 'false' | boolean | undefined | null;
		enterkeyhint?:
			| 'enter'
			| 'done'
			| 'go'
			| 'next'
			| 'previous'
			| 'search'
			| 'send'
			| undefined
			| null;
		hidden?: boolean | string | undefined | null;
		id?: string | undefined | null;
		inert?: boolean | string | undefined | null;
		inputmode?:
			| 'none'
			| 'text'
			| 'tel'
			| 'url'
			| 'email'
			| 'numeric'
			| 'decimal'
			| 'search'
			| undefined
			| null;
		is?: string | undefined | null;
		itemid?: string | undefined | null;
		itemprop?: string | undefined | null;
		itemref?: string | undefined | null;
		itemscope?: boolean | string | undefined | null;
		itemtype?: string | undefined | null;
		lang?: string | undefined | null;
		slot?: string | undefined | null;
		spellcheck?: 'true' | 'false' | boolean | undefined | null;
		style?: string | Record<string, any> | undefined | null;
		tabindex?: number | string | undefined | null;
		title?: string | undefined | null;
		translate?: 'yes' | 'no' | undefined | null;

		// <command>, <menuitem>
		radiogroup?: string | undefined | null;

		// WAI-ARIA
		role?: AriaRole | undefined | null;

		// RDFa Attributes
		about?: string | undefined | null;
		datatype?: string | undefined | null;
		inlist?: any;
		prefix?: string | undefined | null;
		property?: string | undefined | null;
		resource?: string | undefined | null;
		typeof?: string | undefined | null;
		vocab?: string | undefined | null;

		// Non-standard Attributes
		contextmenu?: string | undefined | null; // Obsolete
		autosave?: string | undefined | null; // Apple exclusive
		color?: string | undefined | null;
		results?: number | string | undefined | null;
		security?: string | undefined | null;
		unselectable?: 'on' | 'off' | undefined | null; // Internet Explorer
	}

Frequently Asked Questions

What is the HTMLAttributes type?
HTMLAttributes is a type/interface in the astro codebase, defined in packages/language-tools/language-server/types/astro-jsx.d.ts.
Where is HTMLAttributes defined?
HTMLAttributes is defined in packages/language-tools/language-server/types/astro-jsx.d.ts at line 497.

Analyze Your Own Codebase

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

Try Supermodel Free