# Row

The `Row` component adds space below a UI element or group of UI elements. It can optionally restrict the width of the row.

```javascript
import { Row } from 'components/lib';

function MyComponent({ ...props }){

  return (
    <div>
      <Row width='md'>
        <div>Element 1</div>
        <div>Element 2</div>
      </Row>
    </div>
  );
}
```

### Props

| Prop      | Description                   | Required | Value                |
| --------- | ----------------------------- | -------- | -------------------- |
| children  | children to render            | required | component            |
| className | custom style                  | optional | SCSS or Tailwind     |
| mainTitle | the main title of the row     | optional | string               |
| width     | restrict the width of the row | optiona  | string (sm/md/lg/xl) |

### Notes

* The `children` prop allows for rendering nested components within the row.
* The `width` prop restricts the width of the row if provided.
* The `className` prop allows for custom styling to be applied.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usegravity.app/gravity-web/components/row.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
