Skip to content

Icon

<bh-icon> | BharatIcon

The bh-icon component provides a versatile way to display icons in your application with customizable size, color, and style variants.

Basic Usage

Icon Sizes

Use the size attribute to control the icon dimensions.

Icon Colors

Customize the icon color using the color attribute.

Style Types

Icons come in different style variants using the styleType attribute.

Properties

PropertyTypeDescription
namestringThe name of the icon to display
colorstringThe color of the icon in any valid CSS format
sizestringThe size of the icon in any valid CSS format
styleTypestringThe style variant of the icon (outlined, filled)
linkstringAdd clickable link on the icon