@seabass-ui/layout

0.1.0 • Public • Published

@seabass-ui/layout

Use to create distributed items with a constant space between into a column or a row. A Stack wraps each children of the stack in a Box that handles the spacing.

Example

<Stack space={3} px={2}>
  <Stack space={2} vertical={false}>
    <Placeholder />
    <Placeholder />
    <Placeholder />
  </Stack>
  <Stack space={2} vertical={true}>
    <Placeholder />
    <Placeholder />
    <Placeholder />
  </Stack>
</Stack>

Stack properties

Prop Type Description Default
space space Space to be added to the top of each children except first one 0
vertical bool Render children vertically or horizontally true

Package Sidebar

Install

npm i @seabass-ui/layout

Weekly Downloads

1

Version

0.1.0

License

EPL-2.0

Unpacked Size

9.9 kB

Total Files

7

Last publish

Collaborators

  • ferossgp