Skip to main content

Icon

shadow

This component provides a simple way to display icons from a set of SVG images, while allowing various customization options. WebJET Elements uses the Tabler icon set. For a list of all available icons, see tabler-icons.io.

Basic usage

Style Outline / Filled

Custom

Attributes and Properties

color

DescriptionIcon color from the application color palette The default options are "primary", "complete", "complete", "success", "warning", "warning", "danger", "info", and "menu". For more information, go to: theming.
Attributecolor
Type"danger" "dark" | "primary" | "secondary" | "success" | "light" | "complete" | "warning" | string | undefined
Defaultundefined

name

DescriptionSpecifies the name of the icon to display from the set of the included SVG icon collection.
Attributename
Typestring | undefined
Defaultundefined

size

DescriptionSet to "small" for a smaller icon, or to "large" for a larger icon. By default, the size is unset.
Attributesize
Type"large" | "small" | string & Record<never, never> | undefined
Defaultundefined

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeThe div element inside of the wje-icon
svgThe SVG element of the icon

CSS Custom Properties

NameDescription
--wje-icon-sizeDefines the size of the icon
--wje-icon-strokeStroke width of the icon

Slots

No slots available for this component.