2.1.7 • Published 3 years ago

flex-stack v2.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Flex Stack is a easy-to-use React component which creates flex-box divs with simple annotations

Stack uses annotation props and converts them to style properties, so you do not have to write long and repetitive css code. You can easily create flex layouts with a few props.

Sample

<Stack  fill  g12  p12  bg='#fefefe'  xs={{ column:  true }}  >
    <Stack  size={10}  bg='Salmon'  color='white'/>
    <Stack  column  g12  p12  fill  bg='SteelBlue'  color='white'  >
	    <Stack  ac  je  g12  p12  size={10}  xs={{ js:  true }}  bg='PaleVioletRed'  color='white'  >
		    <Stack  h={5}  w={5}  bg='Teal'  xs={{ hidden:  true }}  color='white'/>
		    <Stack  h={5}  w={5}  bg='LightGreen'  color='white'/>
		    <Stack  h={5}  w={5}  bg='Plum'  color='white'/>
	    </Stack>
	    <Stack  je  g12  fill  xs={{ column:  true, js:  true }}  color='white'  >
		    <Stack  fill  bg='RebeccaPurple'  color='white'/>
		    <Stack  size='200px'  bg='Olive'  color='white'/>
	    </Stack>
    </Stack>
</Stack  >

Props

The props you can use and which style properties this props add are as follows

Note: Stack props are applied in an order and some props may override previous ones. Use cautiously

Propis the Rootis a ChildNotes
rowflex-direction: rowflex-direction: rowThis the default value. If you do not provide a direction, flex is a row
columnflex-direction: columnflex-direction: column
fillwidth: '100%', height: '100%'flex-grow: 1
size
w
h
center
stretch
doNotStretch
ac
as
abln
jc
je
js
jsb
bg
bgColor
wrap
shadow
sv
scrollVertical
sh
scrollHorizontal
2.1.6

3 years ago

2.1.7

3 years ago

2.1.2

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.5

3 years ago

2.0.3

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.6

3 years ago

1.0.1

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

0.1.29

3 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago