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-144o7ff-jqezir-ex-2861b8ec284c-el-89{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-144o7ff-jqezir-ex-2861b8ec284c-el-89 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-144o7ff-jqezir-ex-2861b8ec284c-el-89" data-node="ex-2861b8ec284c-el-89" 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-13nymuz-w49qvn-ex-08da6f254f4e-el-90{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-13nymuz-w49qvn-ex-08da6f254f4e-el-90 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-13nymuz-w49qvn-ex-08da6f254f4e-el-90" data-node="ex-08da6f254f4e-el-90" 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-1qbwbwj-11sre8j-ex-7b55af6aa386-el-92{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1qbwbwj-11sre8j-ex-7b55af6aa386-el-92 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1qbwbwj-11sre8j-ex-7b55af6aa386-el-92" data-node="ex-7b55af6aa386-el-92" 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-ri144z-l4r4ib-ex-23377644cedb-el-93{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-ri144z-l4r4ib-ex-23377644cedb-el-93 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-ri144z-l4r4ib-ex-23377644cedb-el-93" data-node="ex-23377644cedb-el-93" 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.