@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.
14 lines (13 loc) • 566 B
JavaScript
import styled, { css } from "styled-components";
import defaultTheme from "../../../defaultTheme";
const StyledRelative = styled.div.withConfig({
displayName: "StyledRelative",
componentId: "sc-sfja47-0"
})(["position:relative;", ";"], ({
inner,
theme
}) => inner && css(["width:calc(100% + ", "px);display:flex;align-items:center;"], parseInt(theme.orbit.spaceSmall, 10) * 2)); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198
StyledRelative.defaultProps = {
theme: defaultTheme
};
export default StyledRelative;