Fidely UI v1 beta is now available!. 🚀

Flex

Used to flex elements together.

Box One
Box Two

Usage

import { Flex } from '@fidely-ui/react'
<Flex>Hey there</Flex>

Examples

Flex around

Box One
Box Two

Flex between

Box One
Box Two

Inline flex

John Doe
John Doe
John Doe

Flex block

Box One
Box Two

The Flex component accepts the following properties:

direction: The flex direction of the container. Can be row, column, row-reverse or column-reverse.

wrap: Whether to wrap the flex items. The value is a boolean.

align: An alias for the css align-items property.

justify: An alias for the css justify-content property.

basis: An alias for the css flex-basis property.

grow: An alias for the css flex-grow property.

shrink: An alias for the css flex-shrink property.

On this page