# SplitterProps (@salmonui/layout/splitter)

> The SplitterProps interface of @salmonui/layout/splitter.

Canonical: https://salmonui.dev/docs/reference/layout/splitter/SplitterProps

```ts
import type { SplitterProps } from '@salmonui/layout/splitter';
```

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

## Reference

Kind: interface

```ts
interface SplitterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onResize'> {
    readonly children?: ReactNode;
    readonly panes?: readonly (SplitterPaneProps & {
        readonly content?: ReactNode;
    })[] | undefined;
    readonly orientation?: 'horizontal' | 'vertical' | undefined;
    readonly sizes?: Readonly<Record<string, SplitterSize>> | undefined;
    readonly defaultSizes?: Readonly<Record<string, SplitterSize>> | undefined;
    readonly onSizesChange?: ((sizes: Record<string, SplitterSize>) => void) | undefined;
    readonly onResizeStart?: ((paneIds: readonly [
        string,
        string
    ]) => void) | undefined;
    readonly onResize?: ((sizes: Readonly<Record<string, number>>) => void) | undefined;
    readonly disabled?: boolean | undefined;
    readonly localeText?: SplitterLocaleText | undefined;
    readonly ref?: Ref<HTMLDivElement> | undefined;
}
```

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode;` | optional | `Splitter.Pane` children. |
| `panes` | `readonly panes?: readonly (SplitterPaneProps & {     readonly content?: ReactNode; })[] \| undefined;` | optional | Data form of the panes (props of `Splitter.Pane` plus `content`); wins over `children`. |
| `orientation` | `readonly orientation?: 'horizontal' \| 'vertical' \| undefined;` | optional | Default `'horizontal'` (panes side by side). |
| `sizes` | `readonly sizes?: Readonly<Record<string, SplitterSize>> \| undefined;` | optional | Controlled sizes by pane id (panes without a size share the rest). |
| `defaultSizes` | `readonly defaultSizes?: Readonly<Record<string, SplitterSize>> \| undefined;` | optional |  |
| `onSizesChange` | `readonly onSizesChange?: ((sizes: Record<string, SplitterSize>) => void) \| undefined;` | optional | Once at the end of a resize (pointer release or a key press), sizes in each pane's unit. |
| `onResizeStart` | `readonly onResizeStart?: ((paneIds: readonly [     string,     string ]) => void) \| undefined;` | optional |  |
| `onResize` | `readonly onResize?: ((sizes: Readonly<Record<string, number>>) => void) \| undefined;` | optional | Once per animation frame during a drag, px sizes of the two panes; not for React state. |
| `disabled` | `readonly disabled?: boolean \| undefined;` | optional | Separators are inert. |
| `localeText` | `readonly localeText?: SplitterLocaleText \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLDivElement> \| undefined;` | optional | The splitter element. |
