Saltar al contenido principal

Column

peligro

This SDK is a Work In Progress! All features are subject to change.

A column is a flexible vertical container used to align child components in a column. It inherits all the capabilities of the box component , with the direction property preset to "column".

Usage

Column

Example
import { Column, Text } from "@tiendanube/nube-sdk-jsx";

function MyComponent() {
return (
<Column width={100} height={200}>
<Text>Hello 1</Text>
<Text>Hello 2</Text>
</Column>
);
}

Properties

PropertyTypeRequiredDescription
childrenNubeChildrenComponentNoArray of child components nested inside the column.
styleStyleSheetNoCustom styles for the column.
widthSizeNoWidth of the column (e.g., "100%", "200px").
heightSizeNoHeight of the column.
marginSizeNoOuter spacing around the column.
paddingSizeNoInner spacing of the column (e.g., "16px").
gapSizeNoSpacing between child elements (e.g., "1rem").
borderRadiusSizeNoBorder radius of the column (e.g., "8px").
reversebooleanNoWhether children should wrap to the next line when space runs out.
backgroundstringNoBackground color (can be CSS variable like "var(--primary-color)").
colorstringNoContent color (can be CSS variable like "var(--primary-color)").
alignItemsFlexItemsNoThe CSS property align-items
alignContentFlexContentNoThe CSS property align-content
justifyContentFlexContentNoThe CSS property justify-content
idstringNoOptional unique identifier for the component.