Buttons
Actions with hierarchy and state
Five practical starting points. Explore a live example, then open its exact document in Studio.
Primary action
Primary action demonstrates actions with hierarchy and state. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, Flex, 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-l9dnzc-t7aw5e-ex-e95b9d6410ef-el-244{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-l9dnzc-t7aw5e-ex-e95b9d6410ef-el-244 \u003e *{width:100% !important}\n.sigma-export-l9dnzc-t7aw5e-ex-e95b9d6410ef-el-243{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-l9dnzc-t7aw5e-ex-e95b9d6410ef-el-243 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-l9dnzc-t7aw5e-ex-e95b9d6410ef-el-244" data-node="ex-e95b9d6410ef-el-244" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-l9dnzc-t7aw5e-ex-e95b9d6410ef-el-243" data-node="ex-e95b9d6410ef-el-243" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"solid"} disabled={false} aria-busy={false}>
{"Create project"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Secondary action
Secondary action demonstrates actions with hierarchy and state. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, Flex, 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-19gzgow-batgsi-ex-13cfd50ca08d-el-247{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-19gzgow-batgsi-ex-13cfd50ca08d-el-247 \u003e *{width:100% !important}\n.sigma-export-19gzgow-batgsi-ex-13cfd50ca08d-el-246{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-19gzgow-batgsi-ex-13cfd50ca08d-el-246 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-19gzgow-batgsi-ex-13cfd50ca08d-el-247" data-node="ex-13cfd50ca08d-el-247" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-19gzgow-batgsi-ex-13cfd50ca08d-el-246" data-node="ex-13cfd50ca08d-el-246" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"View details"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Icon action
Icon action demonstrates actions with hierarchy and state. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, Flex, 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-1rbjf9u-1pt4lk2-ex-8063ee478ece-el-250{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1rbjf9u-1pt4lk2-ex-8063ee478ece-el-250 \u003e *{width:100% !important}\n.sigma-export-1rbjf9u-1pt4lk2-ex-8063ee478ece-el-249{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1rbjf9u-1pt4lk2-ex-8063ee478ece-el-249 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1rbjf9u-1pt4lk2-ex-8063ee478ece-el-250" data-node="ex-8063ee478ece-el-250" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1rbjf9u-1pt4lk2-ex-8063ee478ece-el-249" data-node="ex-8063ee478ece-el-249" style={{"--node-font":"24px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"solid"} disabled={false} aria-busy={false}>
{"↗ Open preview"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Loading action
Loading action demonstrates actions with hierarchy and state. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, Flex, 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-1nm10xa-1g9og8w-ex-8f0710691163-el-253{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1nm10xa-1g9og8w-ex-8f0710691163-el-253 \u003e *{width:100% !important}\n.sigma-export-1nm10xa-1g9og8w-ex-8f0710691163-el-252{position:relative !important;left:auto !important;top:auto !important}.sigma-export-1nm10xa-1g9og8w-ex-8f0710691163-el-252 \u003e *{opacity:0.65 !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1nm10xa-1g9og8w-ex-8f0710691163-el-253" data-node="ex-8f0710691163-el-253" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1nm10xa-1g9og8w-ex-8f0710691163-el-252" data-node="ex-8f0710691163-el-252" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"solid"} disabled={true} aria-busy={true}>
{"Saving…"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Split action
Split action demonstrates actions with hierarchy and state. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, DemoDropdown, Flex, 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-itnwft-1ghde2b-ex-fa6b492687a7-el-257{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-257 \u003e *{width:100% !important}\n.sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-255{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-255 \u003e *{width:100% !important}\n.sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-256{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-256 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-257" data-node="ex-fa6b492687a7-el-257" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-255" data-node="ex-fa6b492687a7-el-255" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"solid"} disabled={false} aria-busy={false}>
{"Publish preview"}
</DemoAction>
</div>
<div className="sigma-node sigma-export-itnwft-1ghde2b-ex-fa6b492687a7-el-256" data-node="ex-fa6b492687a7-el-256" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoDropdown label={"More publish options"} items={["Save draft","Schedule demo","Export preview"]} />
</div>
</Flex>
</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.