Skip to content

OcApplicationIcon component ​

Description ​

The OcApplicationIcon component showcases an icon with a nice, colored background. You can either specify the background color directly or let the component generate one based on the icon's name.

Examples ​

Default ​

The default and most simple use case involves an icon. Please check out Remix Icon for a list of available icons.

Colors ​

A primary color can be passed to the component. Note that colors need to be in hexadecimal format.

Image icons ​

The icon also accepts a named icon or an image icon. An image icon fills the whole tile and gets no background, which suits images that bring their own shape. If a primary color is passed, the image is displayed in icon size on the colored tile instead, which suits images with a transparent background.

Properties ​

Emits ​

Slots ​