Code Examples

These are the icons provided by Spark-Core. See below for use guidelines.


  • You must import spark-core-icons.svg from spark-core in order to use the icon code below.

Angular Information

The sprk-icon component expects that sprk-icon-set has been imported. The sprk-icon-set component provides all the Symbols that sprk-icon makes use of. See below for available customization options:

Component Input Type Description
sprk-icon iconType string Determines which icon is rendered. Expects the value to match the name referenced (i.e. 'chevron-down', instead of 'chevron down').
sprk-icon additionalClasses string Expects a space-separated list of class names to append to the class attribute of the icon. Useful for assigning icon sizes.

Icon Sizing

There are four sizes available for all icons. The default for all icons is 16px by 16px, you can use the modifiers below to adjust the size.

    // Modifier Classes