LowCodeStacks™
Sign in

Power Apps · canvas componentDialogs and feedback✓ Tested in StudioMIT License

Toast

A coloured message bar for success, info, warning and error, shown from anywhere with one Show action. It closes itself, queues messages so none are lost, takes an Undo or View button, and comes in light or dark.

Name in Studio
lcsToast
Version
0.4.0
Properties
8 inputs · 3 outputs · 1 input function · 2 events · 2 actions
Sign in to copy

Free with an account

No ratings yet

Sign in to copy

Variations

As it is when you paste it, with every input at its default.

Formulas on this screen

Set the same ones in Studio to try it the same way; there, each Notify shows its event in a banner, which this preview leaves out so nothing covers the component. The instance names are the ones Studio gives the first copy on a screen.

  • Button1.OnSelect = lcsToast_1.Show("Request saved.", "Success")

  • Button2.OnSelect = lcsToast_1.Show("Couldn't save. Try again.", "Error")

  • Button3.OnSelect = lcsToast_1.Show("Sync runs every hour.", "Info")

  • lcsToast_1.OnAction = Notify(lcsToast_1.ActionText & " selected")

  • lcsToast_1.OnDismiss = Notify("Message closed")

A web replica that behaves as the component does in Power Apps. In Studio it uses Microsoft's controls, which can look slightly different.

Add it in five steps

  1. In Power Apps Studio, open Settings > Updates and check that Modern controls and themes and Enhanced component properties are on.
  2. Open the Components tab in the tree view and select New component.
  3. Select an empty part of Studio, so the new component isn't selected.
  4. Copy the YAML on this page and press Ctrl+V. lcsToast appears with all its properties.
  5. On a screen, insert it from Insert > Custom > lcsToast.

What it needs

  • No premium licence: standard controls, no connectors
  • Modern controls and themes: on
  • Enhanced component properties: on
  • Tested in Power Apps Studio 3.26094.9 on November 2, 2026
  • Version 0.4.0

Properties (16)

Read from the component's own YAML, so they always match what you paste.

Inputs
PropertyKindTypeDefault
DefaultOpen

Shows a toast with DefaultMessage from the start, so you see it while you design. It stays until it's closed. Set it to false when your app calls Show().

InputBooleantrue
DefaultMessage

What the toast says while DefaultOpen shows it, as a Success message, before Show() gives it one.

InputText"Your changes are saved."
ActionText

Text for an optional button on the toast, such as Undo or View. Leave empty for none.

InputText""
ToastWidth

The toast's width in pixels. It never gets wider than the component.

InputNumber420
Duration

Seconds before the toast closes itself. 0 keeps it until the user closes it. With an action button, give people at least 10.

InputNumber6
AccentColor

Your brand colour, used for the border and tint of Info messages.

InputColorRGBA(15, 108, 189, 1)

Guide

Use lcsToast to confirm what just happened ("Request saved"), or to warn about something the user should know, without stopping them. Compared with Notify, it:

  • sits where you put it and looks like the rest of your app, light or dark, with your brand colour on Info messages;
  • closes itself after Duration seconds (6 by default; 0 keeps it until it's closed);
  • queues messages that arrive while one shows, so a quick second Show doesn't wipe out the first. The bar says how many more are waiting, and QueueCount tells your app;
  • can carry a button, such as Undo or View, with an OnAction event;
  • tells your app its state (IsOpen, CurrentKind);
  • lets one formula (FormatMessage) shape every message.

Did it work for you?

No ratings yet.Nobody has said it worked in their app yet.

Sign in to rate it or to say it worked in your app.

Comments

No comments yet. Share how you used it, or ask something.

Sign in to comment or reply. Comments show under a display name you choose, never your email.