Skip to content

SiIconNextComponent documentation

selector
si-icon-next

Component to render a font or SVG icon depending on the configuration. If no SVG icon is found, the component will fall back to render the icon-font. In that case, an application must ensure that the icon font is loaded. This component will only attach the respective class.

The content of this component is hidden in the a11y tree. If needed, the consumer must set proper labels.

Input Properties

NameTypeDefaultDescription
icon
Required
stringDefine which icon should be rendered. Provide using: - value of the icon map provided by addIcons - (not recommended): plain string in kebab-case or camelCase
Example: import { elementUser } from '@simpl/element-icons/ionic'; @Component({template&#58; `<​si-icon-next [icon]="icons.elementUser" /​> <​si-icon-next icon="element-user" /​> <​si-icon-next icon="elementUser" /​> `}) class MyComponent { icons = addIcons(elementUser); }

Types Documentation

No types to document for items on this page.


Except where otherwise noted, content on this site is licensed under MIT License.