mirror of
https://github.com/c8r/x0.git
synced 2024-11-14 01:40:57 +03:00
24 lines
379 B
JavaScript
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
|