# Main

Provides the base needed by the other components (styles and context providers) to work properly.

## Usage <a href="#usage" id="usage"></a>

```jsx
import { Main } from '@aragon/ui'

function App () {
  return (
    <Main>
      {/* Your app goes here */}
    </Main>
  )
}
```

## Props <a href="#props" id="props"></a>

#### `assetsUrl` <a href="#assetsurl" id="assetsurl"></a>

| TYPE     | DEFAULT VALUE  |
| -------- | -------------- |
| `String` | `./aragon-ui/` |

Set this to configure the URL of the directory containing your aragonUI assets.

#### `layout` <a href="#layout" id="layout"></a>

| TYPE      | DEFAULT VALUE |
| --------- | ------------- |
| `Boolean` | `true`        |

Enable `<Layout />`.

#### `scrollView` <a href="#scrollview" id="scrollview"></a>

| TYPE      | DEFAULT VALUE |
| --------- | ------------- |
| `Boolean` | `true`        |

Enable `<ScrollView />`.

#### `theme` <a href="#theme" id="theme"></a>

| TYPE                 | DEFAULT VALUE |
| -------------------- | ------------- |
| `String` or `Object` | `light`       |

The main theme used by aragonUI.


---

# 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://legacy-docs.aragon.org/developers/tools/aragonui/base/main.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.
