Box

A layout component for controlling width, margin, padding, colour and shadows.


children
padding
boxShadow
borderRadius

Props

NameTypeDefaultDescription

children

react node

The elements to build the breadcrumbs out of. Can be a Link or Text.

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.

The Box component has access to space, colour, layout, border, boxShadow, textAlign, and position style props. See the style prop documentation for a full list of available props.


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.