# @salmonui/overlays/dialog API reference

> 24 exported symbols of @salmonui/overlays/dialog: 11 functions, 9 interfaces and 4 types.

Canonical: https://salmonui.dev/docs/reference/overlays/dialog

```ts
import { … } from '@salmonui/overlays/dialog';
```

## Functions

### AlertDialog

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/AlertDialog

```ts
function AlertDialog(props: AlertDialogProps): ReactElement;
```

A confirm, alert or prompt dialog (`role="alertdialog"`, `.salmon-dialog[data-kind="alert"]`).

### Dialog

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/Dialog

```ts
function Dialog(props: DialogProps): ReactElement;

namespace Dialog {
    const Trigger: DialogParts['Trigger'];
    const Close: DialogParts['Close'];
    const Title: DialogParts['Title'];
    const Description: DialogParts['Description'];
    const Body: DialogParts['Body'];
    const Footer: DialogParts['Footer'];
}
```

Dialog root: the open state, the trigger and the `<dialog>` (`.salmon-dialog`).

### DialogBody

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogBody

```ts
function DialogBody(props: HTMLAttributes<HTMLDivElement>): ReactElement;
```

Scrolling content region (`.salmon-dialog-body`).

### DialogClose

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogClose

```ts
function DialogClose(props: DialogTriggerProps): ReactElement;
```

Closes the dialog (`reason: 'close'`); `render` swaps the element.

### DialogDescription

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogDescription

```ts
function DialogDescription(props: HTMLAttributes<HTMLParagraphElement>): ReactElement;
```

Description (`<p class="salmon-dialog-description">`); describes the dialog.

### DialogFooter

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogFooter

```ts
function DialogFooter(props: HTMLAttributes<HTMLDivElement>): ReactElement;
```

Action row (`.salmon-dialog-footer`).

### DialogProvider

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogProvider

```ts
function DialogProvider(props: {
    readonly children?: ReactNode;
}): ReactElement;
```

Hosts the dialogs of `useConfirm()` / `useAlert()` below it: a queue in
its own state, at most one alert dialog at a time, nothing on the server.

### DialogTitle

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogTitle

```ts
function DialogTitle(props: HTMLAttributes<HTMLHeadingElement>): ReactElement;
```

Heading (`<h2 class="salmon-dialog-title">`); labels the dialog and is the default drag handle.

### DialogTrigger

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogTrigger

```ts
function DialogTrigger(props: DialogTriggerProps): ReactElement;
```

Opens the dialog (`aria-haspopup="dialog"`, `aria-expanded`); `render` swaps the element. Use it in `trigger`.

### useAlert

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/useAlert

```ts
function useAlert(): (options: ConfirmOptions) => Promise<void>;
```

`await alert({ title, description })`: resolves when the user acknowledges (or on abort).

### useConfirm

Kind: function

Page: https://salmonui.dev/docs/reference/overlays/dialog/useConfirm

```ts
function useConfirm(): (options: ConfirmOptions) => Promise<boolean>;
```

`await confirm({ title, description, tone })`: true on confirm, false on cancel, Escape or abort.

## Interfaces

### AlertDialogLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/AlertDialogLocaleText

```ts
interface AlertDialogLocaleText {
    readonly ok?: string | undefined;
    readonly cancel?: string | undefined;
    readonly error?: string | undefined;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `ok` | `readonly ok?: string \| undefined;` | optional | Confirm label without `confirmLabel`. Default `"OK"`. |
| `cancel` | `readonly cancel?: string \| undefined;` | optional | Cancel label without `cancelLabel` (only used when `onCancel` or a cancel label exists). Default `"Cancel"`. |
| `error` | `readonly error?: string \| undefined;` | optional | Error text after a rejected `onConfirm` whose reason is not an `Error` with a message. Default `"Something went wrong. Try again."`. |

### AlertDialogProps

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/AlertDialogProps

```ts
interface AlertDialogProps extends Omit<DialogProps, 'title' | 'dismissible' | 'trigger' | 'children' | 'localeText'> {
    readonly title: ReactNode;
    readonly description?: ReactNode;
    readonly children?: ReactNode;
    readonly trigger?: ReactNode;
    readonly confirmLabel?: ReactNode;
    readonly cancelLabel?: ReactNode;
    readonly confirmIcon?: ReactNode;
    readonly cancelIcon?: ReactNode;
    readonly tone?: 'primary' | 'danger' | undefined;
    readonly onConfirm?: ((formData: FormData | undefined) => unknown) | undefined;
    readonly onCancel?: (() => void) | undefined;
    readonly dismissible?: boolean | undefined;
    readonly localeText?: AlertDialogLocaleText | undefined;
}
```

Members (45):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `title` | `readonly title: ReactNode;` |  |  |
| `description` | `readonly description?: ReactNode;` | optional |  |
| `children` | `readonly children?: ReactNode;` | optional | Form fields (a prompt): the body and actions become a `<form>`; submitting it (Enter or the confirm button) calls `onConfirm(formData)`. |
| `trigger` | `readonly trigger?: ReactNode;` | optional |  |
| `confirmLabel` | `readonly confirmLabel?: ReactNode;` | optional |  |
| `cancelLabel` | `readonly cancelLabel?: ReactNode;` | optional | Without a cancel label (and without `localeText.cancel` plus `onCancel`) the dialog is an alert with one action. |
| `confirmIcon` | `readonly confirmIcon?: ReactNode;` | optional |  |
| `cancelIcon` | `readonly cancelIcon?: ReactNode;` | optional |  |
| `tone` | `readonly tone?: 'primary' \| 'danger' \| undefined;` | optional | `'danger'` styles the confirm button for destructive actions. |
| `onConfirm` | `readonly onConfirm?: ((formData: FormData \| undefined) => unknown) \| undefined;` | optional | May return a promise: the confirm button shows its loading state and the dialog stays open until it settles. While pending, Cancel is disabled and Escape and the close button are ignored. A rejection keeps the dialog open and shows the reason's `Error` message (else `localeText.error`) in a `role="alert"` region above the actions; confirming again clears it. |
| `onCancel` | `readonly onCancel?: (() => void) \| undefined;` | optional |  |
| `dismissible` | `readonly dismissible?: boolean \| undefined;` | optional | Escape cancels. Default true. |
| `localeText` | `readonly localeText?: AlertDialogLocaleText \| undefined;` | optional |  |
| `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). |
| `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. |
| `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). |
| `placement` | `placement?: "center" \| "top";` | optional, inherited | `'center'` (default) or `'top'`. |
| `position` | `position?: DialogPosition;` | optional, inherited |  |
| `defaultPosition` | `defaultPosition?: DialogPosition;` | optional, inherited |  |
| `onPositionChange` | `onPositionChange?: ((position: DialogPosition) => void);` | optional, inherited |  |
| `width` | `width?: string \| number;` | optional, inherited |  |
| `height` | `height?: string \| number;` | optional, inherited |  |
| `minHeight` | `minHeight?: string \| number;` | optional, inherited |  |
| `fullScreen` | `fullScreen?: "mobile" \| boolean;` | optional, inherited | Fill the viewport, or only below the mobile width (640 px). |
| `draggable` | `draggable?: boolean;` | optional, inherited | Drag by `dragHandle` (default the title); lazy chunk. |
| `dragHandle` | `dragHandle?: string;` | optional, inherited | CSS selector of the drag handle inside the dialog. Default `.salmon-dialog-title`. |
| `onMoveStart` | `onMoveStart?: (() => void);` | optional, inherited |  |
| `onMove` | `onMove?: ((position: DialogPosition) => void);` | optional, inherited | Per animation frame during a drag; not for React state. |
| `onMoveEnd` | `onMoveEnd?: ((position: DialogPosition) => void);` | optional, inherited |  |
| `resizable` | `resizable?: boolean \| readonly DialogResizeEdge[];` | optional, inherited | Resize from `['bottomEnd']` (`true`) or the given edges; lazy chunk. |
| `onResizeStart` | `onResizeStart?: (() => void);` | optional, inherited |  |
| `onResize` | `onResize?: ((size: DialogSize) => void);` | optional, inherited |  |
| `onResizeEnd` | `onResizeEnd?: ((size: DialogSize) => void);` | 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. |

### ConfirmOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/ConfirmOptions

```ts
interface ConfirmOptions extends Pick<AlertDialogProps, 'title' | 'description' | 'confirmLabel' | 'cancelLabel' | 'tone' | 'confirmIcon' | 'cancelIcon' | 'localeText' | 'className' | 'style'> {
    readonly signal?: AbortSignal | undefined;
    readonly onConfirm?: (() => unknown) | undefined;
}
```

Options of `useConfirm()` / `useAlert()`.

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `signal` | `readonly signal?: AbortSignal \| undefined;` | optional | Aborting closes the dialog; the promise resolves `false` (confirm) or `undefined` (alert). |
| `onConfirm` | `readonly onConfirm?: (() => unknown) \| undefined;` | optional | Runs on confirm before the dialog closes. A returned promise keeps it open with a loading confirm button until it settles: fulfilled, the call resolves `true`; rejected, the error shows in the dialog (as on `AlertDialog`) and Cancel still resolves `false`. |
| `title` | `title: ReactNode;` | inherited |  |
| `description` | `description?: ReactNode;` | optional, inherited |  |
| `confirmLabel` | `confirmLabel?: ReactNode;` | optional, inherited |  |
| `cancelLabel` | `cancelLabel?: ReactNode;` | optional, inherited | Without a cancel label (and without `localeText.cancel` plus `onCancel`) the dialog is an alert with one action. |
| `confirmIcon` | `confirmIcon?: ReactNode;` | optional, inherited |  |
| `cancelIcon` | `cancelIcon?: ReactNode;` | optional, inherited |  |
| `tone` | `tone?: "danger" \| "primary";` | optional, inherited | `'danger'` styles the confirm button for destructive actions. |
| `localeText` | `localeText?: AlertDialogLocaleText;` | optional, inherited |  |

### DialogLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogLocaleText

```ts
interface DialogLocaleText {
    readonly close?: string | undefined;
    readonly moved?: ((position: DialogPosition) => string) | undefined;
    readonly resized?: ((size: DialogSize) => string) | undefined;
    readonly resize?: string | undefined;
    readonly resizeEdge?: ((edge: DialogResizeEdge) => string) | undefined;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `close` | `readonly close?: string \| undefined;` | optional | Close button label. Default `"Close"`. |
| `moved` | `readonly moved?: ((position: DialogPosition) => string) \| undefined;` | optional | Live-region announcements of keyboard moves and resizes. |
| `resized` | `readonly resized?: ((size: DialogSize) => string) \| undefined;` | optional |  |
| `resize` | `readonly resize?: string \| undefined;` | optional | Accessible label of the resize handles. Default `"Resize"`. |
| `resizeEdge` | `readonly resizeEdge?: ((edge: DialogResizeEdge) => string) \| undefined;` | optional | Accessible label of the handle on one edge or corner. Default `resize` and the edge in words: `"Resize (bottom end)"`. |

### DialogOpenChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogOpenChangeEvent

```ts
interface DialogOpenChangeEvent {
    readonly reason: DialogOpenChangeReason;
    readonly source: PressSource | 'api';
    readonly returnValue?: string | undefined;
    readonly defaultPrevented: boolean;
    preventDefault(): void;
}
```

Second argument of `onOpenChange`. `preventDefault()` keeps an uncontrolled dialog as it is.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `reason` | `readonly reason: DialogOpenChangeReason;` |  |  |
| `source` | `readonly source: PressSource \| 'api';` |  |  |
| `returnValue` | `readonly returnValue?: string \| undefined;` | optional | The `<form method="dialog">` submitter's value (`reason: 'submit'`). |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |

### DialogPosition

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogPosition

```ts
interface DialogPosition {
    readonly x: number;
    readonly y: number;
}
```

A dialog offset from its placement: `x` along the inline axis (mirrored in RTL), `y` down.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `x` | `readonly x: number;` |  |  |
| `y` | `readonly y: number;` |  |  |

### DialogProps

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogProps

```ts
interface DialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open' | 'title' | 'onCancel' | 'onClose'> {
    readonly children?: ReactNode;
    readonly trigger?: ReactNode;
    readonly open?: boolean | undefined;
    readonly defaultOpen?: boolean | undefined;
    readonly onOpenChange?: ((open: boolean, event: DialogOpenChangeEvent) => void) | undefined;
    readonly onAfterOpen?: (() => void) | undefined;
    readonly onAfterClose?: (() => void) | undefined;
    readonly modal?: boolean | undefined;
    readonly dismissible?: boolean | {
        readonly escape?: boolean | undefined;
        readonly outside?: boolean | undefined;
    } | undefined;
    readonly onOverlayPress?: ((event: PointerEvent) => void) | undefined;
    readonly closeButton?: boolean | undefined;
    readonly title?: ReactNode;
    readonly initialFocus?: RefObject<HTMLElement | null> | false | undefined;
    readonly returnFocus?: boolean | undefined;
    readonly container?: Element | null | undefined;
    readonly keepMounted?: boolean | undefined;
    readonly placement?: 'center' | 'top' | undefined;
    readonly position?: DialogPosition | undefined;
    readonly defaultPosition?: DialogPosition | undefined;
    readonly onPositionChange?: ((position: DialogPosition) => void) | undefined;
    readonly width?: number | string | undefined;
    readonly height?: number | string | undefined;
    readonly minHeight?: number | string | undefined;
    readonly fullScreen?: boolean | 'mobile' | undefined;
    readonly draggable?: boolean | undefined;
    readonly dragHandle?: string | undefined;
    readonly onMoveStart?: (() => void) | undefined;
    readonly onMove?: ((position: DialogPosition) => void) | undefined;
    readonly onMoveEnd?: ((position: DialogPosition) => void) | undefined;
    readonly resizable?: boolean | readonly DialogResizeEdge[] | undefined;
    readonly onResizeStart?: (() => void) | undefined;
    readonly onResize?: ((size: DialogSize) => void) | undefined;
    readonly onResizeEnd?: ((size: DialogSize) => void) | undefined;
    readonly localeText?: DialogLocaleText | undefined;
    readonly classNames?: Partial<Record<DialogPart, string>> | undefined;
    readonly styles?: Partial<Record<DialogPart, CSSProperties>> | undefined;
    readonly ref?: Ref<HTMLDialogElement> | undefined;
}
```

Members (37):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode;` | optional | Content parts: `Dialog.Title`, `Dialog.Description`, `Dialog.Body`, `Dialog.Footer`, `Dialog.Close`. |
| `trigger` | `readonly trigger?: ReactNode;` | optional | Rendered before the dialog with the dialog's context: usually a `Dialog.Trigger`. |
| `open` | `readonly open?: boolean \| undefined;` | optional |  |
| `defaultOpen` | `readonly defaultOpen?: boolean \| undefined;` | optional |  |
| `onOpenChange` | `readonly onOpenChange?: ((open: boolean, event: DialogOpenChangeEvent) => void) \| undefined;` | optional |  |
| `onAfterOpen` | `readonly onAfterOpen?: (() => void) \| undefined;` | optional |  |
| `onAfterClose` | `readonly onAfterClose?: (() => void) \| undefined;` | optional |  |
| `modal` | `readonly modal?: boolean \| undefined;` | optional | showModal() (default) or show() (modeless: no backdrop, no focus containment). |
| `dismissible` | `readonly dismissible?: boolean \| {     readonly escape?: boolean \| undefined;     readonly outside?: boolean \| undefined; } \| undefined;` | optional | Escape and backdrop dismissal. `true` = both, `false` = none. Default `{ escape: true, outside: false }`. |
| `onOverlayPress` | `readonly onOverlayPress?: ((event: PointerEvent) => void) \| undefined;` | optional | Press on the backdrop of a modal dialog. |
| `closeButton` | `readonly closeButton?: boolean \| undefined;` | optional | A close button in the corner (label `localeText.close`). Default false. |
| `title` | `readonly title?: ReactNode;` | optional | Shorthand for a `Dialog.Title` at the top. |
| `initialFocus` | `readonly initialFocus?: RefObject<HTMLElement \| null> \| false \| undefined;` | optional | Element focused on open (else `[data-autofocus]`, else the first focusable); `false` keeps the platform default. |
| `returnFocus` | `readonly returnFocus?: boolean \| undefined;` | optional | Return focus to the invoker on close. Default true. |
| `container` | `readonly container?: Element \| null \| undefined;` | optional | Modeless only: render the dialog inside this element (positioned in it) instead of in place. Mounted after hydration. |
| `keepMounted` | `readonly keepMounted?: boolean \| undefined;` | optional | Render the closed `<dialog>` too (content in the server HTML). |
| `placement` | `readonly placement?: 'center' \| 'top' \| undefined;` | optional | `'center'` (default) or `'top'`. |
| `position` | `readonly position?: DialogPosition \| undefined;` | optional |  |
| `defaultPosition` | `readonly defaultPosition?: DialogPosition \| undefined;` | optional |  |
| `onPositionChange` | `readonly onPositionChange?: ((position: DialogPosition) => void) \| undefined;` | optional |  |
| `width` | `readonly width?: number \| string \| undefined;` | optional |  |
| `height` | `readonly height?: number \| string \| undefined;` | optional |  |
| `minHeight` | `readonly minHeight?: number \| string \| undefined;` | optional |  |
| `fullScreen` | `readonly fullScreen?: boolean \| 'mobile' \| undefined;` | optional | Fill the viewport, or only below the mobile width (640 px). |
| `draggable` | `readonly draggable?: boolean \| undefined;` | optional | Drag by `dragHandle` (default the title); lazy chunk. |
| `dragHandle` | `readonly dragHandle?: string \| undefined;` | optional | CSS selector of the drag handle inside the dialog. Default `.salmon-dialog-title`. |
| `onMoveStart` | `readonly onMoveStart?: (() => void) \| undefined;` | optional |  |
| `onMove` | `readonly onMove?: ((position: DialogPosition) => void) \| undefined;` | optional | Per animation frame during a drag; not for React state. |
| `onMoveEnd` | `readonly onMoveEnd?: ((position: DialogPosition) => void) \| undefined;` | optional |  |
| `resizable` | `readonly resizable?: boolean \| readonly DialogResizeEdge[] \| undefined;` | optional | Resize from `['bottomEnd']` (`true`) or the given edges; lazy chunk. |
| `onResizeStart` | `readonly onResizeStart?: (() => void) \| undefined;` | optional |  |
| `onResize` | `readonly onResize?: ((size: DialogSize) => void) \| undefined;` | optional |  |
| `onResizeEnd` | `readonly onResizeEnd?: ((size: DialogSize) => void) \| undefined;` | optional |  |
| `localeText` | `readonly localeText?: DialogLocaleText \| undefined;` | optional |  |
| `classNames` | `readonly classNames?: Partial<Record<DialogPart, string>> \| undefined;` | optional |  |
| `styles` | `readonly styles?: Partial<Record<DialogPart, CSSProperties>> \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLDialogElement> \| undefined;` | optional | The `<dialog>` element. |

### DialogSize

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogSize

```ts
interface DialogSize {
    readonly width: number;
    readonly height: number;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `width` | `readonly width: number;` |  |  |
| `height` | `readonly height: number;` |  |  |

### DialogTriggerProps

Kind: interface

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogTriggerProps

```ts
interface DialogTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
    readonly render?: ((props: DialogTriggerRenderProps) => ReactElement) | undefined;
    readonly ref?: Ref<HTMLButtonElement> | undefined;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `render` | `readonly render?: ((props: DialogTriggerRenderProps) => ReactElement) \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLButtonElement> \| undefined;` | optional |  |

## Types

### DialogOpenChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogOpenChangeReason

```ts
type DialogOpenChangeReason = 'trigger' | 'close' | 'closeButton' | 'escape' | 'outside' | 'submit' | 'confirm' | 'cancel' | 'api';
```

### DialogPart

Kind: type

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogPart

```ts
type DialogPart = 'closeButton';
```

### DialogResizeEdge

Kind: type

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogResizeEdge

```ts
type DialogResizeEdge = 'top' | 'bottom' | 'start' | 'end' | 'topStart' | 'topEnd' | 'bottomStart' | 'bottomEnd';
```

Logical resize edges.

### DialogTriggerRenderProps

Kind: type

Page: https://salmonui.dev/docs/reference/overlays/dialog/DialogTriggerRenderProps

```ts
type DialogTriggerRenderProps = ButtonHTMLAttributes<HTMLButtonElement> & {
    readonly ref?: Ref<HTMLButtonElement> | undefined;
};
```

Props the trigger computes for its element (spread them in `render`).

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited |  |
