Skip to main content

Row

danger

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

Row

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

Row

Usage

Example
import { Row, Txt } from "@tiendanube/nube-sdk-jsx";

function MyComponent() {
return (
<Row width={100} height={200}>
<Txt>Hello!!</Txt>
</Row>
);
}

Properties

PropertyTypeRequiredDescription
childrenNubeChildrenComponentNoArray of child components nested inside the row.
widthSizeNoWidth of the row (e.g., "100%", "200px").
heightSizeNoHeight of the row.
styleStyleSheetNoCustom styles for the row.
marginSizeNoOuter spacing around the row.
paddingSizeNoInner spacing of the row (e.g., "16px").
gapSizeNoSpacing between child elements (e.g., "1rem").
borderRadiusSizeNoBorder radius of the row (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.