# Spinner

Displays a circular loading indicator.

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

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

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

const Example = () => (
  <View>
    <Spinner />
    <Spinner title="Loading..." />
    <Spinner bgColor="#ff0000" color="#fff" />
    <Spinner size="large" color="#0000ff" />
    <Spinner style={{ marginVertical: 20 }} />
    <Spinner titleStyle={{ fontSize: 16 }} title="Loading..." />
  </View>
);

export default Example;
```

## Configuration

[View props...](https://facebook.github.io/react-native/docs/view#props)

| Property     | Default | Option |             Description             |
| ------------ | :-----: | :----: | :---------------------------------: |
| color        | #3e50fa | string | The foreground color of the spinner |
| bgColor      |   #fff  | string |       Background color spinner      |
| title        |    -    | string |            Title spinner            |
| style        |    -    |    -   |   Style for the container spinner   |
| titleStyle   |    -    |    -   |     Style for the title spinner     |
| spinnerStyle |    -    |    -   |        Style for the spinner        |


---

# 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/spinner.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.
