# Panel

A docked, full-height surface with a fixed header, a scrolling body and a fixed footer. It is the frame that detail and inspector panels are composed on. It owns structure and surface; the caller composes each slot.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Panel, PanelHeader, PanelBack, PanelTitle, PanelActions, PanelAction, PanelAlert, PanelToolbar, PanelBody, PanelFooter } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-panel--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/panel), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=28410-122)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Panel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `bordered` | `boolean` | `true` | Draws the panel's outer border. Unbordered is a flat surface. |

Also takes the attributes of the HTML element it renders.

### PanelHeader

Also takes the attributes of the HTML element it renders.

### PanelBack

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `loading` | `boolean` |  | Shows a spinner and prevents interaction while keeping the variant's resting colors. |

Also takes the props of `@base-ui/react/button`.

### PanelTitle

Also takes the attributes of the HTML element it renders.

### PanelActions

Also takes the attributes of the HTML element it renders.

### PanelAction

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `aria-label` (required) | `string` |  |  |
| `loading` | `boolean` |  | Shows a spinner and prevents interaction while keeping the variant's resting colors. |

Also takes the props of `@base-ui/react/button`.

### PanelAlert

Also takes the attributes of the HTML element it renders.

### PanelToolbar

Also takes the attributes of the HTML element it renders.

### PanelBody

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `fade` | `boolean` | `true` | Dissolves content into the surface at the top and bottom edges while there is more to scroll to. Mask-based, so it works on any background. |

Also takes the props of `@base-ui/react/scroll-area`.

### PanelFooter

Also takes the attributes of the HTML element it renders.

## Related

- [Card](https://ark.kela.design/product/components/card.md)
