UNPKG

@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) 977 B
"use client"; import * as React from "react"; import CircleSmall from "../../icons/CircleSmall"; const ListItem = ({ label, children, icon = /*#__PURE__*/React.createElement(CircleSmall, null), dataTest }) => { return /*#__PURE__*/React.createElement("li", { "data-test": dataTest, className: "orbit-list-item font-base mb-xxs flex last:m-0 last-of-type:m-0" }, icon && /*#__PURE__*/React.createElement("div", { className: "orbit-list-item-icon me-xs [&>svg]:h-icon-small [&>svg]:w-icon-small [&>.orbit-carrier-logo]:h-icon-small [&>.orbit-carrier-logo]:w-icon-small [&>.orbit-carrier-logo>img]:h-icon-small [&>.orbit-carrier-logo>img]:w-icon-small flex flex-none items-center" }, icon), /*#__PURE__*/React.createElement("span", { className: "w-full" }, label && /*#__PURE__*/React.createElement("div", { className: "orbit-list-item-label font-base text-secondary-foreground font-normal" }, label), children)); }; export default ListItem;