NotificationBadge

NotificationBadge

import NotificationBadge from "@kiwicom/orbit-components/lib/NotificationBadge";
<NotificationBadge>3</NotificationBadge>

Props

NameTypeDefaultDescription
childrenReact.NodeThe content of the NotificationBadge.
dataTeststringOptional prop for testing purposes.
idstringSet id for Badge inside NotificationBadge
iconReact.NodeThis property has higher priority than children. If icon is passed the children wont appear.
typeenum"neutral"The color type of the NotificationBadge.
ariaLabelstringAdds prop adds aria-label to an element, useful for screenreaders.

enum

type
"neutral"
"dark"
"info"
"success"
"warning"
"critical"
"infoSubtle"
"criticalSubtle"