Flex
Install the component from your command line.
npm install @raystack/apsara
The Flex component accepts the following props:
  • gap: sets the gutter space between row and columns
  • wrap: sets whether flex items are forced onto one line or can wrap onto multiple lines.
  • justify: defines how the browser distributes space between and around content items along the main axis of a flex container.
  • align: it controls the alignment of items on the cross axis.
  • direction: sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed).
  • className: Custom CSS class names
Import all parts and piece them together.
import { Flex } from '@raystack/apsara/v1'

<Flex direction="column" justify="center">
  <Flex direction="row" gap="medium"></Flex>
  <Flex direction="row" align="center"></Flex>
</Flex>