# ProgressBar

Progress indicators.

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

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

```javascript
import React from 'react';
import { View } from 'react-native';
import { ProgressBar } from 'monalisa-ui';

const Example = () => (
  <View>
    <ProgressBar value={100} />
    <ProgressBar height={15} value={30} />
  </View>
);

export default Example;
```

## Configuration

| Property     | Default | Option |                Description               |                                                  |
| ------------ | :-----: | :----: | :--------------------------------------: | ------------------------------------------------ |
| height       |    12   | number |        Height of the progress bar        |                                                  |
| borderColor  | #3e50fa | string |           Color of outer border          |                                                  |
| bgColor      | #3e50fa | string |   Background color of the progress bar   |                                                  |
| borderRadius |    -    |   any  | Rounding of corners, set to 0 to disable |                                                  |
| borderWidth  |    1    | number |           Width of outer border          |                                                  |
| value        |    0    | string |                  number                  | Progress of whatever the indicator is indicating |
| style        |    -    |    -   |         Style of the progress bar        |                                                  |

## Example

* ProgressBar custom

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

const Example = () => (
  <View>
    <ProgressBar style={styles.bar} value={30} height={30} />
    <ProgressBar style={styles.bar} value={30} bgColor="#ff0000" borderColor="#ff0000" />
    <ProgressBar style={styles.bar} value={30} borderWidth={3} height={20} />
    <ProgressBar style={styles.bar} value={80}>
      <Text>80</Text>
    </ProgressBar>
  </View>
);

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/progressbar.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.
