@brighthr/component-icon
v2.1.5
Published
This package is deprecated, and is only provided for backwards-compatibility.
Downloads
4,657
Readme
Icon
This package is deprecated, and is only provided for backwards-compatibility.
Recommended alternative
import { CalendarInfoIcon } from '@brighthr/icons';
<CalendarInfoIcon className="w-6" />
Usage
To implement the Icon component into your project you’ll need to add the import:
import Icon from '@brighthr/component-icon';
After adding import into your project you can use it simply like:
<Icon />
Props
| Name | Type | Default | Description |
|----------|------------------------------------------------------|----------|----------------------------|
| iconName | 'iconName'
| | Sets the icon to display. |
| size | 'xxs'
'xs'
'sm'
'base'
'lg'
'xl'
'xxl'
| 'base'
| Sets the size of the icon. |