@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.
22 lines (21 loc) • 624 B
JavaScript
"use client";
import * as React from "react";
import cx from "clsx";
import { getSpacingClasses } from "../common/tailwind";
import { SPACINGS } from "../utils/layout/consts";
const BadgeList = ({
children,
dataTest,
id,
ariaLabel,
spacing = SPACINGS.ONE_HUNDRED
}) => {
return /*#__PURE__*/React.createElement("ul", {
className: cx("orbit-badge-list m-0 flex flex-col p-0", spacing && getSpacingClasses(spacing, undefined, "column")),
"data-test": dataTest,
id: id,
"aria-label": ariaLabel
}, children);
};
export { default as BadgeListItem } from "./BadgeListItem";
export default BadgeList;