BalanceReckon Design System
LayoutBox

Box

Box is the lowest-level component for binding theme-based styles to an individual element on the screen.

BoxProps

PropTypeRequiredDefaultDescription
idstring———
Also accepts BoxStyleProps

ChildFlexProps

PropTypeRequiredDefaultDescription
alignSelfResponsiveProp<CSSProperties['alignSelf']>——The align-self CSS property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis.
flexResponsiveProp<CSSProperties['flex']>——The `flex` shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container.
flexBasisResponsiveProp<CSSProperties['flexBasis']>——The `flexBasis` property sets the initial main size of a flex item.
flexGrowResponsiveProp<CSSProperties['flexGrow']>——The `flexGrow` property sets the flex grow factor of a flex item main size.
flexShrinkResponsiveProp<CSSProperties['flexShrink']>——The `flexShrink` property sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to `flex-shrink`.

MarginProps

PropTypeRequiredDefaultDescription
marginSpacingType——The `margin` shorthand property sets the margin area on all four sides of an element at once.
marginBottomSpacingType——The `marginBottom` property sets the margin area on the bottom side of an element.
marginLeftSpacingType——The `marginLeft` property sets the margin area on the left side of an element.
marginRightSpacingType——The `marginRight` property sets the margin area on the right side of an element.
marginTopSpacingType——The `marginTop` property sets the margin area on the top side of an element.
marginXSpacingType——The `marginX` shorthand property sets the margin area on the left and right of the element.
marginYSpacingType——The `marginY` shorthand property sets the margin area on the top and bottom of the element.

PaddingProps

PropTypeRequiredDefaultDescription
paddingSpacingType——The `padding` shorthand property sets the padding area on all four sides of an element at once.
paddingBottomSpacingType——The `paddingBottom` property sets the height of the padding area on the bottom of an element.
paddingLeftSpacingType——The `paddingLeft` property sets the width of the padding area on the left of an element.
paddingRightSpacingType——The `paddingRight` property sets the width of the padding area on the right of an element.
paddingTopSpacingType——The `paddingTop` property sets the height of the padding area on the top of an element.
paddingXSpacingType——The `paddingX` shorthand property sets the padding area on the left and right of the element.
paddingYSpacingType——The `paddingY` shorthand property sets the padding area on the top and bottom of the element.

ChildGridProps

PropTypeRequiredDefaultDescription
alignSelfResponsiveProp<CSSProperties['alignSelf']>——The align-self CSS property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis.
gridAreaResponsiveProp<CSSProperties['gridArea']>——Gives a grid item a name so that it can be referenced by a template created with the grid-template-areas property.
gridColumnResponsiveProp<CSSProperties['gridColumn']>——Shorthand for grid-column-start & grid-column-end.
gridColumnEndResponsiveProp<CSSProperties['gridColumnEnd']>——Determines a grid item’s end position within the grid by referring to specific grid column line.
gridColumnStartResponsiveProp<CSSProperties['gridColumnStart']>——Determines a grid item’s start position within the grid by referring to specific grid column line.
gridRowResponsiveProp<CSSProperties['gridRow']>——Shorthand for grid-row-start & grid-row-end.
gridRowEndResponsiveProp<CSSProperties['gridRowEnd']>——Determines a grid item’s end position within the grid by referring to specific grid row line.
gridRowStartResponsiveProp<CSSProperties['gridRowStart']>——Determines a grid item’s start position within the grid by referring to specific grid row line.
justifySelfResponsiveProp<CSSProperties['justifySelf']>——Aligns a grid item inside a cell along the column/block axis.