2017-10-08 02:37:16 +03:00
|
|
|
import styled from 'cxs/x'
|
2017-10-08 01:36:50 +03:00
|
|
|
import {
|
|
|
|
alignItems,
|
|
|
|
justifyContent,
|
2017-10-08 02:37:16 +03:00
|
|
|
flexWrap,
|
2017-10-08 01:36:50 +03:00
|
|
|
propTypes
|
|
|
|
} from 'styled-system'
|
|
|
|
import Box from './Box'
|
|
|
|
|
|
|
|
const Flex = styled(Box)({
|
|
|
|
display: 'flex'
|
2017-10-08 02:37:16 +03:00
|
|
|
}, alignItems, justifyContent, flexWrap)
|
|
|
|
|
2017-10-08 01:36:50 +03:00
|
|
|
|
|
|
|
Flex.propTypes = {
|
|
|
|
...propTypes.alignItems,
|
|
|
|
...propTypes.justifyContent,
|
2017-10-08 02:37:16 +03:00
|
|
|
...propTypes.flexWrap
|
2017-10-08 01:36:50 +03:00
|
|
|
}
|
|
|
|
|
2017-10-08 02:37:16 +03:00
|
|
|
Flex.displayName = 'Flex'
|
|
|
|
|
2017-10-08 01:36:50 +03:00
|
|
|
export default Flex
|