svg.ts

Declarations
#

view source

SvgData
#

svg.ts view source

SvgData

raw

Raw svg markup string that's inserted unsafely as a child of the svg element. This is an escape hatch for non-path markup - generally, you should instead use the paths property to avoid security/CSP implications.

type string | null

paths

List of svg path attribute objects. The d attribute is required.

type Array<{d: string} & SvelteHTMLElements['path']> | null

attrs

type SvelteHTMLElements['svg'] | null

fill

type string | null

width

type string | null

height

type string | null

label

type string | null

viewBox

Defaults to "0 0 100 100".

type string | null

Depends on
#

Imported by
#