Configuration of a new node's properties

interface NodeProperties {
    attrs?: Record<string, string>;
    class?: CssClasses;
}

Properties

Properties

attrs?: Record<string, string>

Attributes to be applied to the new html node. Note: all values will be converted to strings, because this is a wrapper around node.setAttribute().

class?: CssClasses

CSS classes for the new html node. Can be either a string or an array of strings.