# useDelay API

> Auto-generated API reference for `useDelay` from @vuetify/v0 (Vuetify0).
> Source of truth: https://0.vuetifyjs.com/api/use-delay

## Related

- https://0.vuetifyjs.com/composables/system/use-delay
- https://0.vuetifyjs.com/composables/system/use-timer
- https://0.vuetifyjs.com/composables/system/use-popover

## Functions

### useDelay

Schedule open and close transitions with configurable delays.

Composes `useTimer` for the lifecycle (`start` / `stop` / `pause` / `resume` plus
reactive `isActive`, `isPaused`, `remaining`) and adds direction tracking
(`isOpening`) and promise-based resolution.

```ts
(callback?: ((isOpening: boolean) => void) | undefined, options?: UseDelayOptions) => UseDelayReturn
```

## Options

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `openDelay` | `MaybeRefOrGetter<number> \| undefined` | — | no | Delay in milliseconds before the opening transition fires. |
| `closeDelay` | `MaybeRefOrGetter<number> \| undefined` | — | no | Delay in milliseconds before the closing transition fires. |

## Methods

| Name | Type | Description |
|---|---|---|
| `start` | `(isOpening: boolean, options?: UseDelayStartOptions) => Promise<boolean>` | Start a delay in the given direction. Restarts if already running. Resolves with `isOpening` once the delay elapses. If `start()` is called again before the previous resolves, the previous promise resolves with the new direction. |
| `stop` | `() => void` | Cancel any pending delay and reset state. Resolves the pending promise with the current direction. |
| `pause` | `() => void` | Pause the in-flight delay, preserving remaining time. No-op if not running. |
| `resume` | `() => void` | Resume from where pause left off. No-op if not paused. |

## Properties

| Name | Type | Description |
|---|---|---|
| `isActive` | `Readonly<Ref<boolean, boolean>>` | Whether a delay is currently pending (started, not stopped). |
| `isPaused` | `Readonly<Ref<boolean, boolean>>` | Whether the pending delay is currently paused. |
| `remaining` | `Readonly<Ref<number, number>>` | Milliseconds remaining until the pending transition fires. |
| `isOpening` | `Readonly<Ref<boolean, boolean>>` | Direction of the pending transition (`true` = opening, `false` = closing). |
