0.1.5 • Published 9 months ago

@phase2/outline-icon v0.1.5

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

outline-icon

Properties

PropertyAttributeTypeDefaultDescription
labellabelstring \| booleanfalse
librarylibrarystring"library"The name of a registered custom icon library.
namenamestring \| undefinedThe name of the icon to draw.
sizesizestring \| boolean"32px"The width and height of the icon.
srcsrcstring \| undefinedAn external URL of an SVG file.WARNING: Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks.

Methods

MethodType
redraw(): void
setIcon(): Promise<void>

Events

EventDescription
outline-errorEmitted when the icon fails to load due to an error.
outline-loadEmitted when the icon has loaded.

CSS Shadow Parts

PartDescription
baseThe component's base wrapper.