Alerts
Persistent contextual feedback, distinct from transient Toast
Five practical starting points. Explore a live example, then open its exact document in Studio.
Inline success
Inline success demonstrates persistent contextual feedback, distinct from transient toast. Edit content, composition and responsive styling in Studio.
Your latest edits are stored on this device.
✓ Changes saved locallyUsage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { ExtendedElement, SigmaUIProvider } 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-aaixe7-15fx0b7-ex-280876a189e0-el-11{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-aaixe7-15fx0b7-ex-280876a189e0-el-11 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-aaixe7-15fx0b7-ex-280876a189e0-el-11" data-node="ex-280876a189e0-el-11" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Alert"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Your latest edits are stored on this device.","gap":16,"items":["Design|24","Build|48","Review|72"],"label":"Inline success","padding":24,"src":"/elements/product.svg","text":"standard","title":"All changes saved","value":24}} />
</div>
</div>
</SigmaUIProvider>
);
}
Validation error
Validation error demonstrates persistent contextual feedback, distinct from transient toast. Edit content, composition and responsive styling in Studio.
Check the highlighted fields and try again.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { ExtendedElement, SigmaUIProvider } 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-1s4p9c3-7a1jrn-ex-56a2393faca5-el-14{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1s4p9c3-7a1jrn-ex-56a2393faca5-el-14 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1s4p9c3-7a1jrn-ex-56a2393faca5-el-14" data-node="ex-56a2393faca5-el-14" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Alert"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Check the highlighted fields and try again.","gap":16,"items":["Maya Chen|Online","Alex Rivera|Away"],"label":"Validation error","padding":16,"src":"/elements/product.svg","text":"compact","title":"We couldn't save this draft","value":65}} />
</div>
</div>
</SigmaUIProvider>
);
}
Service warning
Service warning demonstrates persistent contextual feedback, distinct from transient toast. Edit content, composition and responsive styling in Studio.
This demo workspace will be unavailable from 22:00 to 22:30.
Scheduled maintenance ? 22:00Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { ExtendedElement, SigmaUIProvider } 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-hnto6z-17cpn4j-ex-9aea98368963-el-17{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-hnto6z-17cpn4j-ex-9aea98368963-el-17 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-hnto6z-17cpn4j-ex-9aea98368963-el-17" data-node="ex-9aea98368963-el-17" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Alert"} props={{"alt":"SigmaUI abstract workspace illustration","description":"This demo workspace will be unavailable from 22:00 to 22:30.","gap":16,"items":["Overview|Start here","Projects|Your recent work","Settings|Preferences"],"label":"Service warning","padding":24,"src":"/elements/product.svg","text":"detailed","title":"Scheduled maintenance","value":82}} />
</div>
</div>
</SigmaUIProvider>
);
}
Informational notice
Informational notice demonstrates persistent contextual feedback, distinct from transient toast. Edit content, composition and responsive styling in Studio.
Start with a template or create a project.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { ExtendedElement, SigmaUIProvider } 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-1ys87nb-137aaab-ex-7d2716f1838c-el-20{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1ys87nb-137aaab-ex-7d2716f1838c-el-20 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1ys87nb-137aaab-ex-7d2716f1838c-el-20" data-node="ex-7d2716f1838c-el-20" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Alert"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Start with a template or create a project.","gap":16,"items":["First milestone|12 Oct","Second milestone|14 Oct","Launch|18 Oct"],"label":"Informational notice","padding":32,"src":"/elements/product.svg","text":"featured","title":"Your workspace is ready","value":40}} />
</div>
</div>
</SigmaUIProvider>
);
}
Dismissible update
Dismissible update demonstrates persistent contextual feedback, distinct from transient toast. Edit content, composition and responsive styling in Studio.
Explore the latest improvements to the Elements library.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { ExtendedElement, SigmaUIProvider } 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-19wotsv-1kg0dcj-ex-99d0adefa5f9-el-23{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-19wotsv-1kg0dcj-ex-99d0adefa5f9-el-23 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-19wotsv-1kg0dcj-ex-99d0adefa5f9-el-23" data-node="ex-99d0adefa5f9-el-23" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Alert"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Explore the latest improvements to the Elements library.","gap":16,"items":["Getting started|A thoughtful beginning"],"label":"Dismissible update","padding":12,"src":"/elements/product.svg","text":"minimal","title":"New version available","value":100}} />
</div>
</div>
</SigmaUIProvider>
);
}
Protected properties
binding, id, type, version, role, intent. Trusted host bindings remain protected.
Composition & accessibility
Supports editable children in its default slot. Use meaningful labels and a logical heading hierarchy. Interactive submissions are simulated locally.