BadgeList

BadgeList

import BadgeList, { BadgeListItem } from "@kiwicom/orbit-components/lib/BadgeList";
<BadgeList>
<BadgeListItem icon={<Airplane />}>Lorem ipsum dolor sit amet</BadgeListItem>
</BadgeList>

Props

NameTypeDefaultDescription
childrenReact.NodeThe content of the BadgeList.
dataTeststringOptional prop for testing purposes.
idstringSet id for BadgeList

BadgeListItem

NameTypeDefaultDescription
childrenReact.NodeThe content of the BadgeListItem.
iconReact.NodeThe displayed icon on the left.
typeenum"neutral"The color type of the BadgeListItem.
sizeenum"small"The text size of the BadgeListItem.
strikeThroughbooleanfalseWhether the text is striked through.

enum

typesize
"neutral""small"
"info""normal"
"success"
"warning"
"critical"