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.

25 lines (23 loc) 654 B
import * as React from "react"; import styled from "styled-components"; import Text from "../Text"; const StyledWrapper = styled.div.withConfig({ displayName: "KeyValue__StyledWrapper", componentId: "sc-18qha8d-0" })(["display:flex;flex-direction:column;"]); const KeyValue = ({ dataTest, label, value, size = "normal" }) => { return /*#__PURE__*/React.createElement(StyledWrapper, { "data-test": dataTest }, /*#__PURE__*/React.createElement(Text, { type: "secondary", size: size === "normal" ? "small" : "normal" }, label), /*#__PURE__*/React.createElement(Text, { size: size }, value)); }; export default KeyValue;