@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) • 721 B
JavaScript
import * as React from "react";
import styled from "styled-components";
import defaultTheme from "../defaultTheme";
import getSpacingToken from "../common/getSpacingToken";
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, getSpacingToken);
StyledSeparator.defaultProps = {
theme: defaultTheme
};
const Separator = ({
spaceAfter
}) => React.createElement(StyledSeparator, {
spaceAfter: spaceAfter
});
export default Separator;