UNPKG

@alexanderjeurissen/flex

Version:

A declarative React primitive Flex component that exposes flexbox specification in JSX

13 lines (12 loc) 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const styled_components_1 = require("styled-components"); const styled_system_1 = require("styled-system"); const should_forward_prop_1 = require("@styled-system/should-forward-prop"); const Flex = styled_components_1.default('div').withConfig({ shouldForwardProp: should_forward_prop_1.default })({ display: 'flex', minWidth: 0, minHeight: 0 }, styled_system_1.compose(styled_system_1.layout, styled_system_1.flexbox, styled_system_1.space)); Flex.displayName = 'Flex'; exports.default = Flex;