ImgOrSvg.svelte

Declarations
#

view source

ImgOrSvg
#

ImgOrSvg.svelte view source

src

type string

label?

type string
optional

size?

Sets both the width and height of the svg. Overridden by the width and height props.

type string
optional

width?

Sets the width of the svg. Overrides size.

type string
optional

height?

Sets the height of the svg. Overrides size.

type string
optional

svg_attrs?

type SvelteHTMLElements['svg']
optional

img_attrs?

type SvelteHTMLElements['img']
optional

attrs?

Shared attributes for both img and svg.

type Pick<SvelteHTMLElements['div'], 'class' | 'style'>
optional

Imported by
#