Menu
Command collections, distinct from destination Navigations
Five practical starting points. Explore a live example, then open its exact document in Studio.
Workspace commands
Workspace commands demonstrates command collections, distinct from destination navigations. Edit content, composition and responsive styling in Studio.
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-qt4cn5-62cycz-ex-f2bab32c5e4b-el-442{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-qt4cn5-62cycz-ex-f2bab32c5e4b-el-442 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-qt4cn5-62cycz-ex-f2bab32c5e4b-el-442" data-node="ex-f2bab32c5e4b-el-442" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Menu"} props={{"alt":"SigmaUI abstract workspace illustration","description":"A considered space for your next idea.","gap":16,"items":["Create project","Switch workspace","Manage team"],"label":"Workspace commands","padding":24,"src":"/elements/product.svg","text":"standard","title":"Workspace commands","value":24}} />
</div>
</div>
</SigmaUIProvider>
);
}
File commands
File commands demonstrates command collections, distinct from destination navigations. Edit content, composition and responsive styling in Studio.
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-c85foz-eyyqtv-ex-6ff2bf00ee14-el-445{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-c85foz-eyyqtv-ex-6ff2bf00ee14-el-445 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-c85foz-eyyqtv-ex-6ff2bf00ee14-el-445" data-node="ex-6ff2bf00ee14-el-445" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Menu"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Built for small teams doing meaningful work.","gap":16,"items":["New document","Open draft","Export JSON"],"label":"File commands","padding":16,"src":"/elements/product.svg","text":"compact","title":"File commands","value":65}} />
</div>
</div>
</SigmaUIProvider>
);
}
Edit commands
Edit commands demonstrates command collections, distinct from destination navigations. Edit content, composition and responsive styling in Studio.
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-13ke87n-101h903-ex-d94ea0704aef-el-448{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-13ke87n-101h903-ex-d94ea0704aef-el-448 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-13ke87n-101h903-ex-d94ea0704aef-el-448" data-node="ex-d94ea0704aef-el-448" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Menu"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Your workspace, with everything in reach.","gap":16,"items":["Undo","Redo","Find"],"label":"Edit commands","padding":24,"src":"/elements/product.svg","text":"detailed","title":"Edit commands","value":82}} />
</div>
</div>
</SigmaUIProvider>
);
}
Context actions
Context actions demonstrates command collections, distinct from destination navigations. Edit content, composition and responsive styling in Studio.
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-16191k3-1va5tg3-ex-ffdde1f66f14-el-454{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-16191k3-1va5tg3-ex-ffdde1f66f14-el-454 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-16191k3-1va5tg3-ex-ffdde1f66f14-el-454" data-node="ex-ffdde1f66f14-el-454" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Menu"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Make room for what matters.","gap":16,"items":["Duplicate","Rename","Archive demo"],"label":"Context actions","padding":12,"src":"/elements/product.svg","text":"minimal","title":"Context actions","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.