1
1
mirror of https://github.com/c8r/x0.git synced 2024-11-14 01:40:57 +03:00
x0/docs/Flex.js
2017-10-07 19:37:16 -04:00

24 lines
379 B
JavaScript

import styled from 'cxs/x'
import {
alignItems,
justifyContent,
flexWrap,
propTypes
} from 'styled-system'
import Box from './Box'
const Flex = styled(Box)({
display: 'flex'
}, alignItems, justifyContent, flexWrap)
Flex.propTypes = {
...propTypes.alignItems,
...propTypes.justifyContent,
...propTypes.flexWrap
}
Flex.displayName = 'Flex'
export default Flex