Skip to main content

Icons

Shadow bbj-icon


The <bbj-icon> provides methods for displaying a UI icon. An icon is a unelectable SVG image that represents an application, a capability, or some other concept or specific entity with meaning for the user. There are several icons pools that the user can choose from, which will be loaded from a CDN on demand. The following list of pools are available to use out of the box in Button components:

You can use this component like this:

<bbj-icon pool="POOL_NAME" name="ICON_NAME"></bbj-icon>
info

The default pool name is tabler

You can use these when adding text to certain components via the setText() method by setting text similar to the following:

  Button reminder = new Button("<html><bbj-icon name=\"bell\"></bbj-icon> Icon Left</html>");

Styling

Expanses

When styling icons, it is possible to use the theme and expanse attributes to modify the icons, especially when using them with other components that are utilizing themes and expanses. Below is information on the attributes, as well as parts and properties required for customizing icons with CSS.

Shadow Parts

These are the various parts of the shadow DOM for the component, which will be required when styling via CSS is desired.

Loading...

CSS Properties

These are the various CSS properties that are used in the component, with a short description of their use.

Loading...

Reflected Attributes

The reflected attributes of a component will be shown as attributes in the rendered HTML element for the component in the DOM. This means that styling can be applied using these attributes.

Loading...