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-88lvma-1fqiv8i-ex-dec8bccd6c97-el-260{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-88lvma-1fqiv8i-ex-dec8bccd6c97-el-260 \u003e *{width:100% !important}\n.sigma-export-88lvma-1fqiv8i-ex-dec8bccd6c97-el-259{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-88lvma-1fqiv8i-ex-dec8bccd6c97-el-259 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-88lvma-1fqiv8i-ex-dec8bccd6c97-el-260" data-node="ex-dec8bccd6c97-el-260" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-88lvma-1fqiv8i-ex-dec8bccd6c97-el-259" data-node="ex-dec8bccd6c97-el-259" 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-hhppig-4iamiq-ex-a56dc51af28c-el-263{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-hhppig-4iamiq-ex-a56dc51af28c-el-263 \u003e *{width:100% !important}\n.sigma-export-hhppig-4iamiq-ex-a56dc51af28c-el-262{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-hhppig-4iamiq-ex-a56dc51af28c-el-262 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-hhppig-4iamiq-ex-a56dc51af28c-el-263" data-node="ex-a56dc51af28c-el-263" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-hhppig-4iamiq-ex-a56dc51af28c-el-262" data-node="ex-a56dc51af28c-el-262" 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-siswy4-gsexz6-ex-95df838c33da-el-266{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-siswy4-gsexz6-ex-95df838c33da-el-266 \u003e *{width:100% !important}\n.sigma-export-siswy4-gsexz6-ex-95df838c33da-el-265{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-siswy4-gsexz6-ex-95df838c33da-el-265 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-siswy4-gsexz6-ex-95df838c33da-el-266" data-node="ex-95df838c33da-el-266" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-siswy4-gsexz6-ex-95df838c33da-el-265" data-node="ex-95df838c33da-el-265" 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-14yszae-3xgow-ex-d00415576058-el-269{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-14yszae-3xgow-ex-d00415576058-el-269 \u003e *{width:100% !important}\n.sigma-export-14yszae-3xgow-ex-d00415576058-el-268{position:relative !important;left:auto !important;top:auto !important}.sigma-export-14yszae-3xgow-ex-d00415576058-el-268 \u003e *{opacity:0.65 !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-14yszae-3xgow-ex-d00415576058-el-269" data-node="ex-d00415576058-el-269" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-14yszae-3xgow-ex-d00415576058-el-268" data-node="ex-d00415576058-el-268" 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-1hbks8f-1l5idcj-ex-12338cb0356d-el-273{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-273 \u003e *{width:100% !important}\n.sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-271{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-271 \u003e *{width:100% !important}\n.sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-272{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-272 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-273" data-node="ex-12338cb0356d-el-273" style={{"--node-gap":"8px","--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1hbks8f-1l5idcj-ex-12338cb0356d-el-271" data-node="ex-12338cb0356d-el-271" 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-1hbks8f-1l5idcj-ex-12338cb0356d-el-272" data-node="ex-12338cb0356d-el-272" 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.