> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/marimo-team/marimo/llms.txt
> Use this file to discover all available pages before exploring further.

# accordion

Accordion of one or more items.

## Usage

```python theme={null}
mo.accordion(
    {"Tip": "Use accordions to let users reveal and hide content."}
)
```

Accordion content can be lazily loaded:

```python theme={null}
mo.accordion({"View total": expensive_item}, lazy=True)
```

where `expensive_item` is the item to render, or a callable that returns the item to render.

## Signature

```python theme={null}
mo.accordion(
    items: dict[str, object],
    multiple: bool = False,
    lazy: bool = False
) -> Html
```

## Parameters

<ParamField path="items" type="dict[str, object]" required>
  A dictionary of item names to item content; strings are interpreted as markdown.
</ParamField>

<ParamField path="multiple" type="bool" default="False">
  Whether to allow multiple items to be open simultaneously.
</ParamField>

<ParamField path="lazy" type="bool" default="False">
  A boolean, whether to lazily load the accordion content. This is a convenience that wraps each accordion in a `mo.lazy` component.
</ParamField>

## Returns

<ParamField path="Html">
  An `Html` object.
</ParamField>
