# DrawerProps (@salmonui/overlays/drawer)

> The DrawerProps interface of @salmonui/overlays/drawer.

Canonical: https://salmonui.dev/docs/reference/overlays/drawer/DrawerProps

```ts
import type { DrawerProps } from '@salmonui/overlays/drawer';
```

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

## Reference

Kind: interface

```ts
interface DrawerProps extends Omit<DialogProps, 'placement' | 'position' | 'defaultPosition' | 'onPositionChange' | 'draggable' | 'dragHandle' | 'onMoveStart' | 'onMove' | 'onMoveEnd' | 'resizable' | 'onResizeStart' | 'onResize' | 'onResizeEnd' | 'fullScreen'> {
    readonly side?: 'start' | 'end' | 'top' | 'bottom' | undefined;
    readonly size?: number | string | undefined;
}
```

Members (25):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `side` | `readonly side?: 'start' \| 'end' \| 'top' \| 'bottom' \| undefined;` | optional | Edge the panel slides from: logical `'start'` (default) / `'end'`, or `'top'` / `'bottom'`. |
| `size` | `readonly size?: number \| string \| undefined;` | optional | Inline size (start / end) or block size (top / bottom), number px or CSS length. Default 320 px. |
| `children` | `children?: ReactNode;` | optional, inherited | Content parts: `Dialog.Title`, `Dialog.Description`, `Dialog.Body`, `Dialog.Footer`, `Dialog.Close`. |
| `trigger` | `trigger?: ReactNode;` | optional, inherited | Rendered before the dialog with the dialog's context: usually a `Dialog.Trigger`. |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited |  |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: DialogOpenChangeEvent) => void);` | optional, inherited |  |
| `onAfterOpen` | `onAfterOpen?: (() => void);` | optional, inherited |  |
| `onAfterClose` | `onAfterClose?: (() => void);` | optional, inherited |  |
| `modal` | `modal?: boolean;` | optional, inherited | showModal() (default) or show() (modeless: no backdrop, no focus containment). |
| `dismissible` | `dismissible?: boolean \| { readonly escape?: boolean \| undefined; readonly outside?: boolean \| undefined; };` | optional, inherited | Escape and backdrop dismissal. `true` = both, `false` = none. Default `{ escape: true, outside: false }`. |
| `onOverlayPress` | `onOverlayPress?: ((event: PointerEvent) => void);` | optional, inherited | Press on the backdrop of a modal dialog. |
| `closeButton` | `closeButton?: boolean;` | optional, inherited | A close button in the corner (label `localeText.close`). Default false. |
| `title` | `title?: ReactNode;` | optional, inherited | Shorthand for a `Dialog.Title` at the top. |
| `initialFocus` | `initialFocus?: false \| RefObject<HTMLElement \| null>;` | optional, inherited | Element focused on open (else `[data-autofocus]`, else the first focusable); `false` keeps the platform default. |
| `returnFocus` | `returnFocus?: boolean;` | optional, inherited | Return focus to the invoker on close. Default true. |
| `container` | `container?: Element \| null;` | optional, inherited | Modeless only: render the dialog inside this element (positioned in it) instead of in place. Mounted after hydration. |
| `keepMounted` | `keepMounted?: boolean;` | optional, inherited | Render the closed `<dialog>` too (content in the server HTML). |
| `width` | `width?: string \| number;` | optional, inherited |  |
| `height` | `height?: string \| number;` | optional, inherited |  |
| `minHeight` | `minHeight?: string \| number;` | optional, inherited |  |
| `localeText` | `localeText?: DialogLocaleText;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<"closeButton", string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<"closeButton", CSSProperties>>;` | optional, inherited |  |
| `ref` | `ref?: Ref<HTMLDialogElement>;` | optional, inherited | The `<dialog>` element. |
