# Row The **** component lays out child components horizontally. ## Required Permissions None ## Child Components This component can contain child components. ## APIs Row\(options?: \{ space?: Length \}\) - Parameters Name Type Mandatory Default Value Description space Length No 0 Space between any two adjacent child components in the horizontal layout. ## Attributes Name Type Default Value Description alignItems VerticalAlign Center Alignment mode of the child components in the vertical direction. - VerticalAlign enums Name Description Top Top aligned. Center Center alignment. This is the default alignment mode. Bottom Bottom aligned. ## Example ``` @Entry @Component struct RowExample { build() { Column({ space: 5 }) { Text('space').fontSize(9).fontColor(0xCCCCCC).width('90%') Row({ space: 20 }) { Row().width(150).height(50).backgroundColor(0xAFEEEE) Row().width(150).height(50).backgroundColor(0x00FFFF) }.width(321).height(52).border({ width: 1 }) Text('alignItems(Bottom)').fontSize(9).fontColor(0xCCCCCC).width('90%') Row() { Row().width('50%').height(50).backgroundColor(0xAFEEEE) Row().width('50%').height(50).backgroundColor(0x00FFFF) }.alignItems(VerticalAlign.Bottom).width('90%').height(100).border({ width: 1 }) Text('alignItems(Top)').fontSize(9).fontColor(0xCCCCCC).width('90%') Row() { Row().width('50%').height(50).backgroundColor(0xAFEEEE) Row().width('50%').height(50).backgroundColor(0x00FFFF) }.alignItems(VerticalAlign.Top).width('90%').height(100).border({ width: 1 }) }.width('100%') } } ``` 
Name
Type
Mandatory
Default Value
Description
space
Length
No
0
Space between any two adjacent child components in the horizontal layout.
alignItems
VerticalAlign
Center
Alignment mode of the child components in the vertical direction.
Top
Top aligned.
Center alignment. This is the default alignment mode.
Bottom
Bottom aligned.