Skip to main content

Box

The <Box /> component is designed to a simple interface to creating a Flexbox <div>, with shorthand props for quick access to css flexbox properties like align-items (align) and justify-content (justify).


Hello <Box> component.

Component API

NameTypeDefaultDescription
childrenString/ReactNode-Content
cssCSSProperties-Custom CSS styles (Stiches format)
blockboolean-Sets CSS display: block
inlineboolean-Sets CSS display: inline
inlineBlockboolean-Sets CSS display: block-block
directionrow/column-Sets CSS flex-direction to row or column
alignstring-CSS Align-Items
gapstring$8CSS Gap
justifystring-CSS Justify-Content
marginstring-CSS Margin
paddingstring-CSS Padding
widthstring-CSS Width