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

When to use

Use wje-icon to improve readability, scannability, and contextual understanding of content.

When not to use

Do not replace structured interactive data with media-only presentation when precision is needed.

Accessibility

Provide alt text, maintain readable contrast, and include text equivalents for icon-only controls.

Best Practices

  • Compress media and use lazy loading in larger collections.
  • Keep information priority consistent across cards/lists.
  • Avoid duplicating the same meaning in icon and text without added value.

Attributes and Properties

name

DescriptionSets the field name used when submitting form data.
Attributename
Typeany
Default-

filled

DescriptionControls how filled behaves in the component.
Attributefilled
Typeany
Default-

label

DescriptionSets the user-visible or accessible label text.
Attributelabel
Typeany
Default-

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

NameDescription
svgThe SVG part of the icon.

CSS Custom Properties

NameDescription
--wje-icon-sizeThe size of the icon element.
--wje-icon-widthThe width of the icon element.
--wje-icon-heightThe height of the icon element.

Slots

No slots available for this component.