DomElementInfo › attr?
Official
Type: Record<string, boolean | null | number | string>
Example:
createEl('p', { attr: { id: 'foo', 'data-bar': 'baz' } });