Button Group
Related actions grouped as one control
Five practical starting points. Explore a live example, then open its exact document in Studio.
Text alignment
Text alignment demonstrates related actions grouped as one control. 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-14by7ud-1vghnhv-ex-7ad2746cee5e-el-227{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-14by7ud-1vghnhv-ex-7ad2746cee5e-el-227 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-14by7ud-1vghnhv-ex-7ad2746cee5e-el-227" data-node="ex-7ad2746cee5e-el-227" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"ButtonGroup"} props={{"alt":"SigmaUI abstract workspace illustration","description":"A considered space for your next idea.","gap":16,"items":["Align left","Align center","Align right"],"label":"Text alignment","padding":24,"src":"/elements/product.svg","text":"standard","title":"Text alignment","value":24}} />
</div>
</div>
</SigmaUIProvider>
);
}
View switcher
View switcher demonstrates related actions grouped as one control. 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-1vn0eoz-1m9ab6b-ex-ec973befac21-el-230{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vn0eoz-1m9ab6b-ex-ec973befac21-el-230 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1vn0eoz-1m9ab6b-ex-ec973befac21-el-230" data-node="ex-ec973befac21-el-230" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"ButtonGroup"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Built for small teams doing meaningful work.","gap":16,"items":["List","Grid","Board"],"label":"View switcher","padding":16,"src":"/elements/product.svg","text":"compact","title":"View switcher","value":65}} />
</div>
</div>
</SigmaUIProvider>
);
}
Bulk actions
Bulk actions demonstrates related actions grouped as one control. 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-1qdel5j-gyx7rn-ex-919abba71349-el-236{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1qdel5j-gyx7rn-ex-919abba71349-el-236 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1qdel5j-gyx7rn-ex-919abba71349-el-236" data-node="ex-919abba71349-el-236" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"ButtonGroup"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Clear information. Confident decisions.","gap":16,"items":["Archive","Move","Export"],"label":"Bulk actions","padding":32,"src":"/elements/product.svg","text":"featured","title":"Bulk actions","value":40}} />
</div>
</div>
</SigmaUIProvider>
);
}
Segmented filter
Segmented filter demonstrates related actions grouped as one control. 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-wy195f-ksgn83-ex-ac3debc704bb-el-239{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-wy195f-ksgn83-ex-ac3debc704bb-el-239 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-wy195f-ksgn83-ex-ac3debc704bb-el-239" data-node="ex-ac3debc704bb-el-239" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"ButtonGroup"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Make room for what matters.","gap":16,"items":["All","Active","Completed"],"label":"Segmented filter","padding":12,"src":"/elements/product.svg","text":"minimal","title":"Segmented filter","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.