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.

15 lines 558 B
import * as React from "react"; import cx from "clsx"; const TileContent = /*#__PURE__*/React.forwardRef(({ children, noPadding, withPointer, withBorder, useMargins = true }, ref) => { return /*#__PURE__*/React.createElement("div", { ref: ref, className: cx("text-normal leading-normal", withPointer === true && "cursor-pointer", withBorder === true && "border-cloud-normal border-t", !noPadding && !useMargins && "p-md lm:p-lg", !noPadding && useMargins && "py-md mx-md lm:py-lg lm:mx-lg") }, children); }); export default TileContent;