Skip to content

ptcs-icons

Overview

The ptcs-icons directory includes imports for predefined icon sets that can be loaded into your project.

Usage

Icon set is JS file that is named cds-icons.js. The file contains a list of predefined icons and every icon has a unique id:

<g id="[icon-id]"><path part...

To use the icons in a component, you must import the corresponding icon set, e.g.:

import '[path_to_component]/ptcs-icons/cds-icons.js';

You can use a specific icon from the icon set to populate the icon property of ptcs-icon component:

<ptcs-icon icon="cds:[icon-id]"></ptcs-icon>