Skip to content

OcIcon component

Description

The OcIcon component displays icons as SVGs. The design system includes a list of icons made by Remixicon and, in the case of the resource-type-* icons, Font Awesome (available under the CC-BY-4.0 license).

Accessibility

An accessible-label can be provided if the element has a purpose. If the icon is purely decorative, accessible-label should be left empty, resulting in the aria-hidden attribute to be set to true.

Examples

Default

The basic usage of the component needs the icon name property.

Fill types

The available fill types are: fill, line and none.

Sizes

The available sizes are: xsmall, small, medium, large, xlarge, xxlarge and xxxlarge.

Properties

Emits

Slots