Row

Arranges children in a horizontal line, from left to right.

PropTypeDescription
childrenReact.NodeAccpets children to render
gap?numberGap size in rems
justifyContent?"flex-end" | "space-between" | "space-around"Allows to set CSS justify-content property
align?"start" | "end"CSS flexbox align-items property
className?stringSets class attribute
onClick?() => voidSets onClick method
title?stringSets title attribute
language icon
copy icon
import { Row } from "@brick-uikit/layout";

Usage row

By default if you use Row, child elements will position with space between them

Look to the right

Here is how you would use Row component

language icon

example.tsx

copy icon
<Row>
	<h4>Title</h4>
	<p>Here is how you would use Row component</p>
</Row>

Gap

You can use the gap property, and the row component will position the elements on gap width you give it. The gap number is set in rems

Title

Here is how you would use Row component

language icon

example.tsx

copy icon
<Row gap={1}>
	<h4>Title</h4>
	<p>Here is how you would use Row component</p>
</Row>