Waffle Design System

Flex

Flex is Box with display: flex and comes with helpful style shorthand. It renders a div element by default.

Import

Usage

Using the Flex components, here are some helpful shorthand props:

  • flexDirection is direction
  • flexWrap is wrap
  • alignItems is align
  • justifyContent is justify

While you can pass the verbose props, using the shorthand can save you some time.

Box 1
Box 2
Box 3
Editable Example
Waffle Design SystemBlockstack PBC