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 1993eeb5_2b56_5e45_6fa2_64b1e69ddbd6["HTMLAttributes"] d523c4d2_c1d1_7d83_faae_8b6b7c0c800a["astro-jsx.d.ts"] 1993eeb5_2b56_5e45_6fa2_64b1e69ddbd6 -->|defined in| d523c4d2_c1d1_7d83_faae_8b6b7c0c800a style 1993eeb5_2b56_5e45_6fa2_64b1e69ddbd6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/astro-jsx.d.ts lines 530–609
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;
exportparts?: string | 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;
// Microdata API
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;
part?: string | undefined | null;
popover?: boolean | string | undefined | null;
slot?: string | undefined | null;
spellcheck?: 'true' | 'false' | boolean | undefined | null;
style?: string | CSSProperties | 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
// Allow data- attribute
[key: `data-${string}`]: any;
}
Defined In
Source
Frequently Asked Questions
What is the HTMLAttributes type?
HTMLAttributes is a type/interface in the astro codebase, defined in packages/astro/astro-jsx.d.ts.
Where is HTMLAttributes defined?
HTMLAttributes is defined in packages/astro/astro-jsx.d.ts at line 530.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free