Skip to content

setAttrs

setAttrs(el, attrs, clear): void

Defined in: vanilla-integration/src/utils.ts:36

Sets attributes of an element

Element

Element to set attributes of

Record<string, any>

Attributes object

boolean = false

If true, all element attributes will be cleared

void