# DashboardLayoutProps (@salmonui/layout/dashboard-layout)

> The DashboardLayoutProps interface of @salmonui/layout/dashboard-layout.

Canonical: https://salmonui.dev/docs/reference/layout/dashboard-layout/DashboardLayoutProps

```ts
import type { DashboardLayoutProps } from '@salmonui/layout/dashboard-layout';
```

Entry index: https://salmonui.dev/docs/reference/layout/dashboard-layout (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/layout/dashboard-layout.md).

## Reference

Kind: interface

```ts
interface DashboardLayoutProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> {
    readonly children?: ReactNode;
    readonly columns?: number | undefined;
    readonly gap?: number | readonly [
        number,
        number
    ] | undefined;
    readonly rowHeight?: number | undefined;
    readonly cellAspectRatio?: number | undefined;
    readonly showGridLines?: boolean | undefined;
    readonly layout?: readonly DashboardLayoutItem[] | undefined;
    readonly defaultLayout?: readonly DashboardLayoutItem[] | undefined;
    readonly onLayoutChange?: ((layout: DashboardLayoutItem[]) => void) | undefined;
    readonly draggable?: boolean | undefined;
    readonly dragHandle?: string | undefined;
    readonly resizable?: boolean | readonly DashboardResizeEdge[] | undefined;
    readonly compact?: GridCompact | undefined;
    readonly responsive?: {
        readonly stackBelow?: number | undefined;
    } | undefined;
    readonly localeText?: DashboardLayoutLocaleText | undefined;
    readonly ref?: Ref<HTMLDivElement> | undefined;
}
```

Members (16):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode;` | optional | `DashboardLayout.Panel` children. |
| `columns` | `readonly columns?: number \| undefined;` | optional | Column count. Default 12. |
| `gap` | `readonly gap?: number \| readonly [     number,     number ] \| undefined;` | optional | Space between cells in px: one value, or `[inline, block]`. Default 8. |
| `rowHeight` | `readonly rowHeight?: number \| undefined;` | optional | Row height in px. Without it rows follow `cellAspectRatio`. |
| `cellAspectRatio` | `readonly cellAspectRatio?: number \| undefined;` | optional | Cell width / height when `rowHeight` is not set. Default 1 (square cells). |
| `showGridLines` | `readonly showGridLines?: boolean \| undefined;` | optional |  |
| `layout` | `readonly layout?: readonly DashboardLayoutItem[] \| undefined;` | optional | Controlled layout (the serialized form). |
| `defaultLayout` | `readonly defaultLayout?: readonly DashboardLayoutItem[] \| undefined;` | optional |  |
| `onLayoutChange` | `readonly onLayoutChange?: ((layout: DashboardLayoutItem[]) => void) \| undefined;` | optional | Once per committed drag, resize or keyboard drop, with every panel's item. |
| `draggable` | `readonly draggable?: boolean \| undefined;` | optional | Panels move with the pointer and the keyboard. Default true. |
| `dragHandle` | `readonly dragHandle?: string \| undefined;` | optional | CSS selector of the drag handle inside a panel; default the whole panel. |
| `resizable` | `readonly resizable?: boolean \| readonly DashboardResizeEdge[] \| undefined;` | optional | Resize handles: true is `['bottom-end']`. Default false. |
| `compact` | `readonly compact?: GridCompact \| undefined;` | optional | `'vertical'` floats panels up into free space. Default `'vertical'`. |
| `responsive` | `readonly responsive?: {     readonly stackBelow?: number \| undefined; } \| undefined;` | optional | `stackBelow`: below this container width (px, at least 100) panels stack in one column in layout order. |
| `localeText` | `readonly localeText?: DashboardLayoutLocaleText \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLDivElement> \| undefined;` | optional | The root element. |
