Skip to content

Icon

The IconV2 component allows you to render various icons with customizable properties such as size, color theme, and name. It will soon replace the old Icon component.

Variations

Sizes

IconV2 supports multiple predefined size variants: 2xs, xs, sm, md, lg and xl. The default size is sm.

Colors

IconV2 supports predefined color variants through the color prop: inherit, danger, warning, success, info, neutral, risk, and disabled. The default color is inherit.

Custom colors

You can also set custom colors using the className prop to override the default styling.

With tooltip

IconWithTooltip pairs an icon with a tooltip — useful for inline “informer” affordances. Pass tooltip content and, optionally, iconProps to control the icon it renders.

Installation

import { IconV2 } from '@harnessio/ui/components'
//...
return <IconV2 name="check" size="lg" />