Skip to content

showToast() first argument: text or HTML? #12

@jackbsteinberg

Description

@jackbsteinberg

The developer can use the <std-toast> HTML element to pass in custom HTML content for the toast, but there is currently no way to do this for the showToast() function.

This could be solved by passing in an HTML template string as the message parameter of showToast(message, options), for example:

const toast = showToast(`<b>Hello</b> World!`);

Is there interest in supporting this behavior, or is the current option sufficient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions