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

# Panel

> Framed container for grouped LUI content

# Panel

`Panel` renders a framed container with border, background, padding, and shadow.

```lua theme={"dark"}
ui.panel({
  width = 'lg',
  className = 'm-0 w-full max-w-[980px]'
}, function()
  ui.typography('Controls', {
    variant = 'h3'
  })
  ui.text('Panel body')
end)
```

## API

<CodeGroup>
  ```lua Builder theme={"dark"}
  ui.panel(props?, children?)
  ```

  ```lua Declarative theme={"dark"}
  lui.panel(props?, children?)
  ```
</CodeGroup>

## Props

| Prop                             | Type                   | Description                         |
| -------------------------------- | ---------------------- | ----------------------------------- |
| `width`                          | `'sm' \| 'md' \| 'lg'` | Max width. Defaults to `md`.        |
| `className`                      | `string`               | Appends to the default panel class. |
| `style`, `font`, `theme`, `vars` | mixed                  | Common LUI styling props.           |
