# Snackbar API

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

## Related

- https://0.vuetifyjs.com/components/semantic/snackbar
- https://0.vuetifyjs.com/composables/plugins/use-notifications
- https://0.vuetifyjs.com/composables/registration/create-queue

## Snackbar.Root

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:notifications"` | no | Namespace for dependency injection. |
| `id` | `any` | `useId()` | no | Unique identifier. Auto-generated if not provided. |
| `urgent` | `boolean \| undefined` | — | no | When true, sets role="alert" for urgent messages; otherwise role="status". |

### Events

| Name | Type | Description |
|---|---|---|
| `dismiss` | `[id: ID]` | — |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `SnackbarRootSlotProps` | — |

## Snackbar.Announcer

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:notifications"` | no | Namespace for context injection from parent Snackbar.Portal. |

## Snackbar.Close

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:notifications"` | no | Namespace for dependency injection. |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `SnackbarCloseSlotProps` | — |

## Snackbar.Portal

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `announcer` | `boolean \| undefined` | `true` | no | Auto-render the Snackbar.Announcer live-region pair. Set false to omit it or place `<Snackbar.Announcer>` yourself. |
| `namespace` | `string \| undefined` | `"v0:notifications"` | no | Namespace for dependency injection. |
| `teleport` | `false \| "top-layer" \| (string & {}) \| undefined` | `"top-layer"` | no | Teleport target. `'top-layer'` mounts into the topmost open modal; `false` renders inline. |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `SnackbarPortalSlotProps` | — |

## Snackbar.Queue

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:notifications"` | no | Which notifications instance to connect to. |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `SnackbarQueueSlotProps` | — |
