# usePresence API

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

## Related

- https://0.vuetifyjs.com/composables/system/use-presence
- https://0.vuetifyjs.com/components/primitives/presence
- https://0.vuetifyjs.com/composables/system/use-toggle-scope
- https://0.vuetifyjs.com/composables/system/use-lazy

## Functions

### usePresence

Animation-agnostic mount lifecycle management.

```ts
(options: UsePresenceOptions) => UsePresenceReturn
```

## Options

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `present` | `MaybeRefOrGetter<boolean>` | — | yes | Drive visibility. |
| `lazy` | `boolean \| undefined` | `false` | no | Delay first mount until present is first true. |
| `immediate` | `boolean \| undefined` | `true` | no | Auto-resolve LEAVING state next tick if done() not called. |

## Methods

| Name | Type | Description |
|---|---|---|
| `done` | `() => void` | Call when exit animation finishes. |

## Properties

| Name | Type | Description |
|---|---|---|
| `state` | `Readonly<ShallowRef<PresenceState>>` | Current lifecycle state. |
| `isMounted` | `Readonly<Ref<boolean, boolean>>` | Should the element be in the DOM? |
| `isPresent` | `Readonly<Ref<boolean, boolean>>` | Is it logically present? |
| `isLeaving` | `Readonly<Ref<boolean, boolean>>` | Is an exit in progress? |
