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-qpikwb-b2jmoj-ex-d052fbcc7681-el-212{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-qpikwb-b2jmoj-ex-d052fbcc7681-el-212 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-qpikwb-b2jmoj-ex-d052fbcc7681-el-212" data-node="ex-d052fbcc7681-el-212" 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-ig0n8r-8zld8z-ex-ea221b48dc02-el-215{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-ig0n8r-8zld8z-ex-ea221b48dc02-el-215 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-ig0n8r-8zld8z-ex-ea221b48dc02-el-215" data-node="ex-ea221b48dc02-el-215" 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-1u137p-zr7p9v-ex-1b169c27d2dc-el-221{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1u137p-zr7p9v-ex-1b169c27d2dc-el-221 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1u137p-zr7p9v-ex-1b169c27d2dc-el-221" data-node="ex-1b169c27d2dc-el-221" 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-8vxfgb-1kniz4j-ex-817e12b973af-el-224{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-8vxfgb-1kniz4j-ex-817e12b973af-el-224 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-8vxfgb-1kniz4j-ex-817e12b973af-el-224" data-node="ex-817e12b973af-el-224" 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.