Skip to main content

Icon

<sc-icon name="icon-name-here"></sc-icon>

This component let users display an icon. SureCart comes bundled with over 287 icons courtesy of the Feather Icons. Please use the names from this library for the name property of the icon.

Component Codex

Properties

PropertyDescriptionTypeDefault
labelAn alternative description to use for accessibility. If omitted, the name or src will be used to generate it.string
libraryThe name of a registered custom icon library.string'default'
nameThe name of the icon to draw.string
srcAn external URL of an SVG file.string

Events

EventDescriptionType
scLoadEmitted when the icon has loaded.CustomEvent<void>

Shadow Parts

PartDescription
base

Used By