Toast
Transient local feedback, distinct from persistent Alerts
Five practical starting points. Explore a live example, then open its exact document in Studio.
Save confirmation
Save confirmation demonstrates transient local feedback, distinct from persistent alerts. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { SigmaUIProvider, Toast } from "sigmaui";
import type { TrustedBindings } from "sigmaui";
import "sigmaui/styles.css";
// Supply trusted action callbacks and pricing data from the host application.
// Images retain validated asset URLs. Importing handwritten JSX into Studio is unsupported.
export default function Page({ bindings = {} }: { bindings?: TrustedBindings }) {
return (
<SigmaUIProvider style={{ containerType: "inline-size" }} theme="minimal" mode="light">
<style>{".sigma-export-1z07qmb-1gmb5qr-ex-a1fda95a0bc7-el-286{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1z07qmb-1gmb5qr-ex-a1fda95a0bc7-el-286 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1z07qmb-1gmb5qr-ex-a1fda95a0bc7-el-286" data-node="ex-a1fda95a0bc7-el-286" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<Toast message={"Draft saved on this device"} />
</div>
</div>
</SigmaUIProvider>
);
}
Undo feedback
Undo feedback demonstrates transient local feedback, distinct from persistent alerts. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { SigmaUIProvider, Toast } from "sigmaui";
import type { TrustedBindings } from "sigmaui";
import "sigmaui/styles.css";
// Supply trusted action callbacks and pricing data from the host application.
// Images retain validated asset URLs. Importing handwritten JSX into Studio is unsupported.
export default function Page({ bindings = {} }: { bindings?: TrustedBindings }) {
return (
<SigmaUIProvider style={{ containerType: "inline-size" }} theme="minimal" mode="light">
<style>{".sigma-export-48p8lj-hen83-ex-60e4b18db580-el-287{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-48p8lj-hen83-ex-60e4b18db580-el-287 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-48p8lj-hen83-ex-60e4b18db580-el-287" data-node="ex-60e4b18db580-el-287" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<Toast message={"Previous edit restored"} />
</div>
</div>
</SigmaUIProvider>
);
}
Upload feedback
Upload feedback demonstrates transient local feedback, distinct from persistent alerts. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { SigmaUIProvider, Toast } from "sigmaui";
import type { TrustedBindings } from "sigmaui";
import "sigmaui/styles.css";
// Supply trusted action callbacks and pricing data from the host application.
// Images retain validated asset URLs. Importing handwritten JSX into Studio is unsupported.
export default function Page({ bindings = {} }: { bindings?: TrustedBindings }) {
return (
<SigmaUIProvider style={{ containerType: "inline-size" }} theme="minimal" mode="light">
<style>{".sigma-export-fldtff-1vkbafn-ex-b6f87b985af8-el-288{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-fldtff-1vkbafn-ex-b6f87b985af8-el-288 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-fldtff-1vkbafn-ex-b6f87b985af8-el-288" data-node="ex-b6f87b985af8-el-288" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<Toast message={"File selected locally • nothing uploaded"} />
</div>
</div>
</SigmaUIProvider>
);
}
Copy feedback
Copy feedback demonstrates transient local feedback, distinct from persistent alerts. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { SigmaUIProvider, Toast } from "sigmaui";
import type { TrustedBindings } from "sigmaui";
import "sigmaui/styles.css";
// Supply trusted action callbacks and pricing data from the host application.
// Images retain validated asset URLs. Importing handwritten JSX into Studio is unsupported.
export default function Page({ bindings = {} }: { bindings?: TrustedBindings }) {
return (
<SigmaUIProvider style={{ containerType: "inline-size" }} theme="minimal" mode="light">
<style>{".sigma-export-jeuctn-fjvw43-ex-8a213b627654-el-289{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-jeuctn-fjvw43-ex-8a213b627654-el-289 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-jeuctn-fjvw43-ex-8a213b627654-el-289" data-node="ex-8a213b627654-el-289" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<Toast message={"Demo link copied locally"} />
</div>
</div>
</SigmaUIProvider>
);
}
Offline notification
Offline notification demonstrates transient local feedback, distinct from persistent alerts. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { SigmaUIProvider, Toast } from "sigmaui";
import type { TrustedBindings } from "sigmaui";
import "sigmaui/styles.css";
// Supply trusted action callbacks and pricing data from the host application.
// Images retain validated asset URLs. Importing handwritten JSX into Studio is unsupported.
export default function Page({ bindings = {} }: { bindings?: TrustedBindings }) {
return (
<SigmaUIProvider style={{ containerType: "inline-size" }} theme="minimal" mode="light">
<style>{".sigma-export-15jtc7t-1t8vmlv-ex-e63ad19946d8-el-290{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-15jtc7t-1t8vmlv-ex-e63ad19946d8-el-290 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-15jtc7t-1t8vmlv-ex-e63ad19946d8-el-290" data-node="ex-e63ad19946d8-el-290" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<Toast message={"You're offline. Your local draft is available."} />
</div>
</div>
</SigmaUIProvider>
);
}
Protected properties
binding, id, type, version, role, intent. Trusted host bindings remain protected.
Composition & accessibility
Uses the shared primitive contract. Use meaningful labels and a logical heading hierarchy. Interactive submissions are simulated locally.