Skip to main content

Icon

Supported products
  • Central CMS
  • Central Forms
  • Central Connect

Help visually distinguish and provide extra meaning to certain items or actions. You can pass an icon name or mime type to generate the appropriate icon.

Pulsar currently uses Font Awesome 6 Free, please refer to their website for the full list of available icons.

Save

Basic usage

{{
html.icon('save', {
'label': 'Save'
})
}}

Helper options

You can configure this helper using the common helper options, the following options are specific to this helper.

OptionTypeDescription
classstringA space-separated list of additional class names, these will be added to whatever classes the component requires for its own styling
labelstringAn optional label which can be accessed by screen readers, this should be used when there is no visible text label which can be used for context

Mime type icons

The icon helper can take a standard mime type string to make it easier to illustrate certain file types.

Microsoft Word
{{
html.icon('application/msword', {
'label': 'Microsoft Word'
})
}}