@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.
17 lines • 570 B
JavaScript
import * as React from "react";
import cx from "clsx";
const TileContent = props => {
const {
children,
noPadding,
withPointer,
withBorder,
useMargins = true,
ref
} = props;
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-400 lm:p-600", !noPadding && useMargins && "py-400 mx-400 lm:py-600 lm:mx-600")
}, children);
};
export default TileContent;