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.

20 lines (18 loc) 651 B
import * as React from "react"; import styled from "styled-components"; import defaultTokens from "../defaultTokens"; const StyledSeparator = styled.hr.withConfig({ displayName: "Separator__StyledSeparator", componentId: "sc-8j6gay-0" })(["width:100%;height:", ";background:", ";box-sizing:border-box;border-style:none;margin-top:0;margin-bottom:", ";"], ({ theme }) => theme.orbit.heightSeparator, ({ theme }) => theme.orbit.backgroundSeparator, ({ theme }) => theme.orbit.spaceLarge); StyledSeparator.defaultProps = { theme: defaultTokens }; const Separator = () => React.createElement(StyledSeparator, null); export default Separator;