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.
idstringSets the id attribute for the Badge component inside NotificationBadge.
iconReact.NodeThe displayed icon. If provided, children content will not be rendered.
typeenum"neutral"The color type of the NotificationBadge.
ariaLabelstringSpecifies the accessible name of the badge. See the Accessibility tab.

enum

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