Feedback

IconBadge

1
import {IconBadge, IconBadgeType} from '@coveord/plasma-react';
2
import {BellSize24Px} from '@coveord/plasma-react-icons';
3
4
export default () => (
5
<>
6
<IconBadge icon={BellSize24Px} type={IconBadgeType.New} className="mr1" />
7
<IconBadge icon={BellSize24Px} type={IconBadgeType.Information} className="mr1" />
8
<IconBadge icon={BellSize24Px} type={IconBadgeType.Warning} className="mr1" />
9
<IconBadge icon={BellSize24Px} type={IconBadgeType.Major} />
10
</>
11
);

Props

NameTypeDefaultDescription
iconrequiredIcon
Icon to display
typerequiredIconBadgeType
Type of the icon badge (New - Information - Warning - Major)
classNamestring
Additionnal CSS class for the icon badge
sizeIconBadgeSizeMedium
Size of the icon badge

No guidelines exist for IconBadge yet.

Create guidelines