Structure for the attributes to set in a CustomElement. key (maybe rename to name) is mandatory and must match the key of a mutator if used in conjunction label is recommended for labelled elements, key is used if not given.

interface CustomElementAttributes {
    key: string;
    label?: string;
    [name: string]: string;
}

Indexable

[name: string]: string

Properties

Properties

key: string
label?: string