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
ariaLabelstringAdds aria-label to the BadgeList’s ul element for accessibility.
spacingspacingThe size of the spacing between BadgeListItems.

BadgeListItem

NameTypeDefaultDescription
childrenReact.NodeThe content of the BadgeListItem.
iconReact.NodeThe displayed icon on the left.
iconLabelstringAdds aria-label to the icon for better accessibility.
typeenum"neutral"The color type of the BadgeListItem.
sizeenum"small"The text size of the BadgeListItem.
strikeThroughbooleanfalseWhether the text is striked through.
dataTeststringOptional prop for testing purposes.

enum

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

spacing

spacing values
"none"
"reverse"
"50"
"100"
"150"
"200"
"300"
"400"
"500"
"600"
"800"
"1000"
"1200"
"1600"