start
installationflex
Basic usage
import {Flex} from "tuix-design"
copy
box1
box2
<Flex
<Box bg="blue" height={50}>
<Center>box1</Center>
</Box>
<Box bg="blue" height={50}>
<Center>box2</Center>
</Box>
</Flex>
copy
API
props | type | status | default | description |
---|---|---|---|---|
w | 0 - 24 | optional | 0 | Flex width using 24 grid system |
h | string | number | optional | auto | Flex height |
align | start | end | center | optional | start | align content |
justify | start | end | center | between | evenly | optional | start | justify content |
col | boolean | optional | false | flex column |
reverse | boolean | optional | false | flex reverse |
wrap | boolean | optional | false | flex wrap |
grow | boolean | optional | false | flex grow |
shrink | boolean | optional | false | flex shrink |
gap | number | optional | 0 | flex gap in pixels |
usageapi