Skip to content

SvgElementInfo.attr?

SvgElementInfo › attr?

Official

Type: Record<string, boolean | null | number | string>

HTML attributes to be added.

Example:

createSvg('svg', { attr: { id: 'foo', 'data-bar': 'baz' } });