IMessagesSlots

interface
Component Slots

Scoped slots exposed by <OrigamMessages>. The default slot receives each individual message string so consumers can customise its rendering (e.g. add an icon, apply markup, link to a help article).

TypeScript

Definition

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

typescript

API

Properties

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

default
(data: { message: string }) => any
Scoped slot rendered once per message entry. Receives the individual message string so consumers can customise the display (icon, markup, links, etc.).

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom message rendering with an icon

vue