The `align-items` value (for main axis alignment)
Wrap
Wrap is a layout component used to add space between elements and wraps automatically if there isn't enough space.
Props#
Wrap Props#
Wrap extends Box
, so you can pass all Box
props in addition to these:
align
align
ResponsiveValue<AlignItems>
direction
direction
The `flex-direction` value
ResponsiveValue<FlexDirection>
justify
justify
The `justify-content` value (for cross-axis alignment)
ResponsiveValue<JustifyContent>
shouldWrapChildren
shouldWrapChildren
If true
, the children will be wrapped in a WrapItem
boolean
false
spacing
spacing
The space between each child (even if it wraps)
ResponsiveValue<string | number | (string & {})>
spacingX
spacingX
The horizontal space between the each child (even if it wraps). Defaults to spacing
if not defined.
ResponsiveValue<string | number | (string & {})>
spacingY
spacingY
The vertical space between the each child (even if it wraps). Defaults to spacing
if not defined.
ResponsiveValue<string | number | (string & {})>
WrapItem Props#
WrapItem composes the Box component.
Props#
Wrap Props#
Wrap extends Box
, so you can pass all Box
props in addition to these:
align
align
The `align-items` value (for main axis alignment)
ResponsiveValue<AlignItems>
direction
direction
The `flex-direction` value
ResponsiveValue<FlexDirection>
justify
justify
The `justify-content` value (for cross-axis alignment)
ResponsiveValue<JustifyContent>
shouldWrapChildren
shouldWrapChildren
If true
, the children will be wrapped in a WrapItem
boolean
false
spacing
spacing
The space between each child (even if it wraps)
ResponsiveValue<string | number | (string & {})>
spacingX
spacingX
The horizontal space between the each child (even if it wraps). Defaults to spacing
if not defined.
ResponsiveValue<string | number | (string & {})>
spacingY
spacingY
The vertical space between the each child (even if it wraps). Defaults to spacing
if not defined.
ResponsiveValue<string | number | (string & {})>
WrapItem Props#
WrapItem composes the Box component.