> For the complete documentation index, see [llms.txt](https://boxlang.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boxlang.ortusbooks.com/boxlang-framework/modularity/ui-compatibility/reference/components/layoutarea.md).

# LayoutArea

Defines areas within a layout container component.

## Syntax

```boxlang
<bx:layoutarea 
    title="string"
    position="string"
    selected="boolean"
    collapsed="boolean"
    collapsible="boolean"
    height="string"
    width="string"
    flex="numeric">
    <!-- Content -->
</bx:layoutarea>
```

## Attributes

| Attribute     | Type      | Required | Description                                                    | Default |
| ------------- | --------- | -------- | -------------------------------------------------------------- | ------- |
| `title`       | `string`  | No       | Area title (for tabs/accordion)                                |         |
| `position`    | `string`  | No       | Position for border layouts (north, south, east, west, center) |         |
| `selected`    | `boolean` | No       | Initially selected (for tabs)                                  | `false` |
| `collapsed`   | `boolean` | No       | Initially collapsed (for accordion)                            | `false` |
| `collapsible` | `boolean` | No       | Allow collapse/expand                                          | `true`  |
| `height`      | `string`  | No       | CSS height value                                               |         |
| `width`       | `string`  | No       | CSS width value                                                |         |
| `flex`        | `numeric` | No       | Flex grow factor (for hbox/vbox)                               | `1`     |

## Usage Notes

* Must be used within a `<bx:layout>` component
* Different attributes are relevant for different layout types

## Related Components

* [Layout](/boxlang-framework/modularity/ui-compatibility/reference/components/layout.md) - Parent layout component


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-framework/modularity/ui-compatibility/reference/components/layoutarea.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
