Toggle
Pressed-state commands, distinct from boolean Switch settings
Five practical starting points. Explore a live example, then open its exact document in Studio.
Bold command
Bold command demonstrates pressed-state commands, distinct from boolean switch settings. 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-2wmagh-1f80beb-ex-2a74d6a4c457-el-296{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-2wmagh-1f80beb-ex-2a74d6a4c457-el-296 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-2wmagh-1f80beb-ex-2a74d6a4c457-el-296" data-node="ex-2a74d6a4c457-el-296" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Toggle"} props={{"alt":"SigmaUI abstract workspace illustration","description":"A considered space for your next idea.","gap":16,"items":["Design|24","Build|48","Review|72"],"label":"Bold command","padding":24,"src":"/elements/product.svg","text":"standard","title":"Bold","value":24}} />
</div>
</div>
</SigmaUIProvider>
);
}
Favorite command
Favorite command demonstrates pressed-state commands, distinct from boolean switch settings. 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-1iq0d3v-yupbrn-ex-b95516579f34-el-299{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1iq0d3v-yupbrn-ex-b95516579f34-el-299 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1iq0d3v-yupbrn-ex-b95516579f34-el-299" data-node="ex-b95516579f34-el-299" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Toggle"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Built for small teams doing meaningful work.","gap":16,"items":["Maya Chen|Online","Alex Rivera|Away"],"label":"Favorite command","padding":16,"src":"/elements/product.svg","text":"compact","title":"Favorite","value":65}} />
</div>
</div>
</SigmaUIProvider>
);
}
View command
View command demonstrates pressed-state commands, distinct from boolean switch settings. 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-166xqc5-1a289rn-ex-5b7620e4d395-el-302{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-166xqc5-1a289rn-ex-5b7620e4d395-el-302 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-166xqc5-1a289rn-ex-5b7620e4d395-el-302" data-node="ex-5b7620e4d395-el-302" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Toggle"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Your workspace, with everything in reach.","gap":16,"items":["Overview|Start here","Projects|Your recent work","Settings|Preferences"],"label":"View command","padding":24,"src":"/elements/product.svg","text":"detailed","title":"Grid view","value":82}} />
</div>
</div>
</SigmaUIProvider>
);
}
Mute command
Mute command demonstrates pressed-state commands, distinct from boolean switch settings. 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-u2umyb-fgc0yb-ex-b425e8f0c780-el-305{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-u2umyb-fgc0yb-ex-b425e8f0c780-el-305 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-u2umyb-fgc0yb-ex-b425e8f0c780-el-305" data-node="ex-b425e8f0c780-el-305" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Toggle"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Clear information. Confident decisions.","gap":16,"items":["First milestone|12 Oct","Second milestone|14 Oct","Launch|18 Oct"],"label":"Mute command","padding":32,"src":"/elements/product.svg","text":"featured","title":"Mute","value":40}} />
</div>
</div>
</SigmaUIProvider>
);
}
Pin command
Pin command demonstrates pressed-state commands, distinct from boolean switch settings. 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-z1zdb9-17b27zn-ex-52ac100ebb14-el-308{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-z1zdb9-17b27zn-ex-52ac100ebb14-el-308 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-z1zdb9-17b27zn-ex-52ac100ebb14-el-308" data-node="ex-52ac100ebb14-el-308" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Toggle"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Make room for what matters.","gap":16,"items":["Getting started|A thoughtful beginning"],"label":"Pin command","padding":12,"src":"/elements/product.svg","text":"minimal","title":"Pin project","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.