ISnackbarGroupItem

interface
Data Shapes

Materialised item held inside the snackbar stack store. Extends ISnackbarGroupItemOptions with auto-generated id and createdAt timestamp — used internally by useSnackbarGroup and OrigamSnackbarGroup.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

id
required
string
Auto-generated unique identifier for this stack item. Used by dismiss(id) to address a specific notification.
createdAt
required
number
Unix timestamp (ms) when the item was added to the stack. Used for FIFO eviction when max is exceeded.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Accessing the current stack items

typescript