Flex

A wrapper component that extends Box to create layouts using Flexbox.


children
padding
boxShadow
borderRadius

Responsive

Like Box, all props can be used responsively by using an object that defines small, medium and/or large, based on the theme.breakpoints object

This example displays columns on small screens and rows on large ones.

Props

NameTypeDefaultDescription

children

react node

Inner content

width

string

A width, in any unit.

bg

enum

A background colour, chosen from the theme. A unique value can also be provided.

color

enum

A text colour, chosen from the theme. A unique value can also be provided.

padding

enum

A padding, chosen from the theme. A unique value can also be provided.

boxShadow

enum

A box shadow size, chosen from the theme. A unique value can also be provided.

borderRadius

enum

A border radius, chosen from the theme. A uniique value can also be provided.

Related Components


The Nulogy Design System is maintained by the Design Ops team. Our mission is to help our teams build better interfaces faster. 🚀

Please reach out with any questions or requests.