Skip to content

SvgElementInfo

Unofficial

Options object passed to createSvg.

Signature:

export interface SvgElementInfo

Properties

Property Type Description
attr? Record<string, boolean | null | number | string> HTML attributes to be added.
cls? string | string[] The class to be assigned. Can be a space-separated string or an array of strings.
parent? Node The parent element to be assigned to.
prepend? boolean Whether to prepend the element to the parent. If true, the element will be inserted before the first child of the parent. If false or omitted, the element will be inserted after the last child of the parent.

Links to this page: