# Row

Use this property to center a child horizontally within a container with flexDirection set to row.

![MonalisaUI](https://raw.githubusercontent.com/tuantvk/monalisa-ui/master/assets/monalisaui-row.png)

View full example: [Row Example](https://github.com/tuantvk/monalisa-ui/blob/master/example/Row/index.js)

```javascript
import React from 'react';
import { View, Text } from 'react-native';
import { Row } from 'monalisa-ui';

const Example = () => (
  <View>
    <Row>
      <Text>Value 1</Text>
      <Text>Value 2</Text>
      <Text>Value 3</Text>
    </Row>
  </View>
);

export default Example;
```

## Configuration

| Property   |   Default  | Option |                                                                           Description                                                                          |
| ---------- | :--------: | :----: | :------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| content    | flex-start | string | Describes how to align children within the main axis of their container. ('flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly') |
| alignItems |   stretch  | string |                               Aligns children in the cross direction. ('flex-start', 'flex-end', 'center', 'stretch', 'baseline')                              |
| style      |      -     |    -   |                                                                        Style for the row                                                                       |

## Example

* space-between

```javascript
import React from 'react';
import { Text } from 'react-native';
import { Row } from 'monalisa-ui';

const Example = () => (
  <Row content="space-between">
    <Text>Value 1</Text>
    <Text>Value 2</Text>
    <Text>Value 3</Text>
  </Row>
);

export default Example;
```

* space-around

```javascript
import React from 'react';
import { Text } from 'react-native';
import { Row } from 'monalisa-ui';

const Example = () => (
  <Row content="space-around">
    <Text>Value 1</Text>
    <Text>Value 2</Text>
    <Text>Value 3</Text>
  </Row>
);

export default Example;
```

* flex-end

```javascript
import React from 'react';
import { Text } from 'react-native';
import { Row } from 'monalisa-ui';

const Example = () => (
  <Row content="flex-end">
    <Text>Value 1</Text>
    <Text>Value 2</Text>
    <Text>Value 3</Text>
  </Row>
);

export default Example;
```

* space-evenly

```javascript
import React from 'react';
import { Text } from 'react-native';
import { Row } from 'monalisa-ui';

const Example = () => (
  <Row content="space-evenly">
    <Text>Value 1</Text>
    <Text>Value 2</Text>
    <Text>Value 3</Text>
  </Row>
);

export default Example;
```


---

# 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://tuantvk.gitbook.io/monalisaui/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.
