Skip to content

Flexbox

Component | Source Code

extends ComponentPropsWithRef<“div”>

Props Inheritance Hierarchy: ComponentPropsWithRef<“div”>

A wrapper that allows for rapid and simple assembly of layouts by leveraging flex.

Intended to be used purely for layout. Flexboxes aren’t intended to have any styling associated with them besides the inline styles the component generates to express the flex options determined from the provided props.

(Optional, defaults to row) The direction that the contents of the Flexbox flow.



(Optional, defaults to false) Whether the flow direction of the Flexbox’s contents should be reversed.



(Optional, defaults to 0.5rem) How much space to put between the contents of the Flexbox.



(Optional, defaults to false) Whether the contents of the Flexbox should wrap.