HxIcon

Displays an icon. Currently supports Bootstrap icons through BootstrapIcon class. You can add your own icon-set easily.

(Internally used by HxButton and other components.)

Icon

Icon is a class derived from IconBase as we want to allow use of icons from different icon sets.

Currently, the library brings just one implementation - BootstrapIcon.

BootstrapIcon

For available icons see Bootstrap Icons or BootstrapIcon members.

Demo

API

Parameters

Name Type Description
Icon IconBase Icon to display.
CssClass string CSS Class to combine with basic icon CSS class.
AdditionalAttributes Dictionary<string, object> Additional attributes to be splatted onto an underlying HTML element.
An unhandled error has occurred. Reload 🗙