Skip to main content

Icon

Icon | WebJET Element for displaying icons 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, visit tabler-icons.io.

Basic Usage

Custom

Attributes and Properties

color

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

name (deprecated)

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

name (deprecated)

DescriptionSpecifies the name of the icon to display from the set of the included SVG icon collection. Deprecated
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

No CSS shadow parts available for this component.

CSS Custom Properties

NameDescription
--wj-icon-heightDefines the height of the icon
--wj-icon-sizeDefines the size of the icon
--wj-icon-widthDefines the width of the icon

Slots

No slots available for this component.