Studio Developer Manual / Version 2512.0
Table Of Contents
CoreMedia provides a complete set of SVG icons in the included @coremedia/studio-client.common-icons package.
If the provided set of icons meets your requirements, you can make use of the icons by accessing them through the default export
of the package.
The exports yield a string result with the contents of the SVG file. You can then pass the content to any function or render it
directly into the DOM. The package @coremedia/studio-client.base-models provides a utility class
SvgIconUtil which offers a function that generates an icon class out of a given SVG code so that it can
be used inside ExtJS components:
import { search } from "@coremedia/studio-client.common-icons";
Config(Button, {
iconCls: SvgIconUtil.getIconStyleClassForSvgIcon(search),
});Example 9.60. Accessing CoreMedia Svg Icons


