@domir/react-stacks
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

React stacks

Usage

<HStack spacing={8}>
	<Text>Hello</Text>
	<Text>World</Text>
</HStack>

<VStack spacing={8}>
	<Text>Hello</Text>
	<Text>World</Text>
</VStack>

Api

name type description
spacing number spacing between elements in pixel, as soon as gap is available, we will use flex: gap instead
padding number padding around the stack
margin number margin around the stack
flex boolean flex property, set to 1 if stack should grow
alignItems FlexAlignType align items in stack
justifyContent FlexJustifyType justify content in stack
debug boolean add a visual debug flag

Readme

Keywords

none

Package Sidebar

Install

npm i @domir/react-stacks

Weekly Downloads

3

Version

1.5.2

License

MIT

Unpacked Size

26.2 kB

Total Files

24

Last publish

Collaborators

  • domir