Column

A structural component used to create columns within a Section. Automatically handles responsive behavior and includes nested components for spacing and dividers.

<Section>
  <Column width="50%" backgroundColor="#f6f6f6">First column content</Column>
  <Column width="50%" verticalAlign="middle">Second column content</Column>
</Section>
PropTypeDefaultUnitDescription
backgroundColorstring-CSS color valueBackground color of the column
borderstringnoneCSS border valueCSS border shorthand for all sides
borderBottomstring-CSS border valueBottom border style
borderLeftstring-CSS border valueLeft border style
borderRadiusstring-pxBorder radius for corners
borderRightstring-CSS border valueRight border style
borderTopstring-CSS border valueTop border style
classstring--CSS class name(s) for custom styling*
innerBackgroundColorstring-CSS color valueBackground color of inner content
innerBorderstring-CSS border valueInner border shorthand
innerBorderBottomstring-CSS border valueInner bottom border style
innerBorderLeftstring-CSS border valueInner left border style
innerBorderRadiusstring-pxInner border radius
innerBorderRightstring-CSS border valueInner right border style
innerBorderTopstring-CSS border valueInner top border style
paddingstring-pxPadding shorthand for all sides
paddingBottomstring-pxBottom padding
paddingLeftstring-pxLeft padding
paddingRightstring-pxRight padding
paddingTopstring-pxTop padding
verticalAlignmiddle|top|bottomtop-Vertical alignment within section
widthstring-px/%Width of the column

* CSS class name(s) that correspond to styles defined in the Head component's styles prop.

Column.Divider

Creates a horizontal line to visually separate content within a Column.

<Column>
  <Text>Above divider</Text>
  <Column.Divider
    borderColor="#e0e0e0"
    borderStyle="dashed"
    borderWidth="1px"
    padding="15px 0"
  />
  <Text>Below divider</Text>
</Column>
PropTypeDefaultUnitDescription
alignleft|right|centercenter-Horizontal alignment of the divider
borderColorstring#000000CSS color valueColor of the divider line
borderStyledashed|dotted|solidsolid-Style of the divider line
borderWidthstring4pxpxThickness of the divider line
classstring--CSS class name(s) for custom styling*
containerBackgroundColorstring-CSS color valueBackground color behind the divider
paddingstring10px 25pxpxPadding shorthand for all sides
paddingBottomstring-pxBottom padding
paddingLeftstring-pxLeft padding
paddingRightstring-pxRight padding
paddingTopstring-pxTop padding
widthstring100%px/%Width of the divider

* CSS class name(s) that correspond to styles defined in the Head component's styles prop.

Column.Spacer

Creates vertical spacing between content elements within a Column.

<Column>
  <Text>First block</Text>
  <Column.Spacer height="30px" />
  <Text>Second block</Text>
</Column>
PropTypeDefaultUnitDescription
classstring--CSS class name(s) for custom styling*
containerBackgroundColorstring-CSS color valueBackground color of the spacer area
heightstring20pxpxHeight of the spacer
paddingstring0pxpxPadding shorthand for all sides
paddingBottomstring-pxBottom padding
paddingLeftstring-pxLeft padding
paddingRightstring-pxRight padding
paddingTopstring-pxTop padding

* CSS class name(s) that correspond to styles defined in the Head component's styles prop.

  • Columns automatically stack on mobile devices.
  • When used inside Section.Group, columns maintain their layout on mobile.
  • Width values can be specified in pixels or percentages, but percentages are recommended for better responsiveness.