1
1
mirror of https://github.com/c8r/x0.git synced 2024-11-14 12:37:17 +03:00
x0/docs/Flex.js

24 lines
379 B
JavaScript
Raw Normal View History

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