Container
You can use the prop type
to choose whether or not the icon will have a surrounding container.
Custom icon
The HvStatusIcon
component supports two other variants that you can use to customize the icon’s appearance: default
and accent
.
These don’t have a default icon, so you need to provide a custom icon using the customIcon
prop. If no icon is provided, a placeholder will be displayed.
Icon weight
Semantic icons
For semantic icons (success
, warning
, error
, and info
), you can use the weight
prop to choose between three different weights:
regular
, duotone
, and fill
.
Custom icons
Because the weight
prop will only affect semantic icons, if you want to use different weights for custom icons,
you need to provide the appropriate Phosphor classname for each weight.
Last updated on