# 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: 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://boxlang.ortusbooks.com/boxlang-framework/modularity/ui-compatibility/reference/components/layoutarea.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.
