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.

23 lines (21 loc) 733 B
import * as React from "react"; import styled from "styled-components"; import defaultTokens from "../../../defaultTokens"; export const StyledCardSection = styled.div.withConfig({ displayName: "CardSection__StyledCardSection", componentId: "sc-1hbg2mb-0" })(["width:100%;padding:", ";box-sizing:border-box;border-top:", ";&:first-of-type{border:0;}"], ({ theme }) => theme.orbit.spaceLarge, ({ theme }) => `${theme.orbit.borderWidthCard} ${theme.orbit.borderStyleCard} ${theme.orbit.borderColorCard}`); StyledCardSection.defaultProps = { theme: defaultTokens }; const CardSection = ({ children, dataTest }) => React.createElement(StyledCardSection, { "data-test": dataTest }, children); export default CardSection;