Fusuma

Components / Basics

toast

A toast, hidden until a task shows one.

Try it

This is the Navigation page of the gallery, running in your browser: toast is on it, and it is the real widget. Press Run, then use it.

Live: Navigation, where toast is usedOpen full size

Also on this pagenamedtext_fmtmenugestures

A toast, hidden until a task shows one.

A task shows it (Task::toast); it fades out by itself.

Signature

pub const fn toast() -> Toast

Example

use fusuma::{column, text, toast};
let view = column((text("Inbox"), toast()));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Inbox"]);

All components · Source