Type Alias Attributes

Attributes: Record<string, { off?: string | null; on?: string | null }>

Each key in the object is an attribute name. The on value is set when the action is done and the off value is set when the action is undone. To set the attribute to an empty value, use an empty string. To delete the attribute, use null as the value or simply omit the relevant on or off key.

IMPORTANT: Attribute names in camelCase are converted to kebab-case. E.g. dataFooBar will translate to data-foo-bar.