Dropdowns
Contextual command menus
Five practical starting points. Explore a live example, then open its exact document in Studio.
Document actions
Document actions demonstrates contextual command menus. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoDropdown, 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-iegzjj-15wszdf-ex-69cc846d9d14-el-120{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-iegzjj-15wszdf-ex-69cc846d9d14-el-120 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-iegzjj-15wszdf-ex-69cc846d9d14-el-120" data-node="ex-69cc846d9d14-el-120" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<DemoDropdown label={"Document actions"} items={["Rename","Duplicate","Archive"]} />
</div>
</div>
</SigmaUIProvider>
);
}
Account actions
Account actions demonstrates contextual command menus. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoDropdown, 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-1sphl1t-6b8jqr-ex-6bf485a7c845-el-121{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1sphl1t-6b8jqr-ex-6bf485a7c845-el-121 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1sphl1t-6b8jqr-ex-6bf485a7c845-el-121" data-node="ex-6bf485a7c845-el-121" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<DemoDropdown label={"Account actions"} items={["Profile","Preferences","Sign out demo"]} />
</div>
</div>
</SigmaUIProvider>
);
}
Export options
Export options demonstrates contextual command menus. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoDropdown, 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-1eud3fx-x1hwc3-ex-d655470883b7-el-123{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1eud3fx-x1hwc3-ex-d655470883b7-el-123 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1eud3fx-x1hwc3-ex-d655470883b7-el-123" data-node="ex-d655470883b7-el-123" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<DemoDropdown label={"Export options"} items={["React","JSON","CSS"]} />
</div>
</div>
</SigmaUIProvider>
);
}
Overflow commands
Overflow commands demonstrates contextual command menus. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoDropdown, 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-1myh1k9-1vssak3-ex-65e75c2aa124-el-124{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1myh1k9-1vssak3-ex-65e75c2aa124-el-124 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1myh1k9-1vssak3-ex-65e75c2aa124-el-124" data-node="ex-65e75c2aa124-el-124" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<DemoDropdown label={"Overflow commands"} items={["Pin","Share demo","Copy link"]} />
</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.