Flex
Original Flex primitive, with its public contract preserved.
Five practical starting points. Explore a live example, then open its exact document in Studio.
Essential composition
Essential composition using the original Flex primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, ExtendedElement, 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-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-46{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-46 \u003e *{width:100% !important}\n.sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-47{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-47 \u003e *{width:100% !important}\n.sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-48{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-48 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-46" data-node="ex-6210c9ec6b5a-el-46" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-47" data-node="ex-6210c9ec6b5a-el-47" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"A workspace shaped around you."}} />
</div>
<div className="sigma-node sigma-export-1nru4qp-1vx1msz-ex-6210c9ec6b5a-el-48" data-node="ex-6210c9ec6b5a-el-48" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Content collection
Content collection using the original Flex primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, ExtendedElement, 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-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-49{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-49 \u003e *{width:100% !important}\n.sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-50{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-50 \u003e *{width:100% !important}\n.sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-51{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-51 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-49" data-node="ex-93423f0b3cc0-el-49" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-50" data-node="ex-93423f0b3cc0-el-50" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"A workspace shaped around you."}} />
</div>
<div className="sigma-node sigma-export-1mm0b6l-t0jyib-ex-93423f0b3cc0-el-51" data-node="ex-93423f0b3cc0-el-51" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Compact context
Compact context using the original Flex primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, ExtendedElement, 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-1vtytrd-1irfak3-ex-afbf2e7301a4-el-52{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-52 \u003e *{width:100% !important}\n.sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-53{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-53 \u003e *{width:100% !important}\n.sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-54{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-54 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-52" data-node="ex-afbf2e7301a4-el-52" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-53" data-node="ex-afbf2e7301a4-el-53" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"A workspace shaped around you."}} />
</div>
<div className="sigma-node sigma-export-1vtytrd-1irfak3-ex-afbf2e7301a4-el-54" data-node="ex-afbf2e7301a4-el-54" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Responsive composition
Responsive composition using the original Flex primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, ExtendedElement, 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-u8hdp-17rylo3-ex-c2b41090d26d-el-55{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-55 \u003e *{width:100% !important}\n.sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-56{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-56 \u003e *{width:100% !important}\n.sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-57{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-57 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-55" data-node="ex-c2b41090d26d-el-55" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-56" data-node="ex-c2b41090d26d-el-56" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"A workspace shaped around you."}} />
</div>
<div className="sigma-node sigma-export-u8hdp-17rylo3-ex-c2b41090d26d-el-57" data-node="ex-c2b41090d26d-el-57" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</Flex>
</div>
</div>
</SigmaUIProvider>
);
}
Editorial context
Editorial context using the original Flex primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { DemoAction, ExtendedElement, 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-1vocqy9-xwxh83-ex-9e47d0d07d24-el-58{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-58 \u003e *{width:100% !important}\n.sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-59{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-59 \u003e *{width:100% !important}\n.sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-60{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-60 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-58" data-node="ex-9e47d0d07d24-el-58" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<Flex>
<div className="sigma-node sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-59" data-node="ex-9e47d0d07d24-el-59" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"A workspace shaped around you."}} />
</div>
<div className="sigma-node sigma-export-1vocqy9-xwxh83-ex-9e47d0d07d24-el-60" data-node="ex-9e47d0d07d24-el-60" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</Flex>
</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.