Aspect Ratio
Original AspectRatio 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 AspectRatio primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { AspectRatio, DemoAction, 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-57biwt-1nimab7-ex-0363b59dd9bc-el-173{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-173 \u003e *{width:100% !important}\n.sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-174{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-174 \u003e *{width:100% !important}\n.sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-175{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-175 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-173" data-node="ex-0363b59dd9bc-el-173" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<AspectRatio>
<div className="sigma-node sigma-export-57biwt-1nimab7-ex-0363b59dd9bc-el-174" data-node="ex-0363b59dd9bc-el-174" 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-57biwt-1nimab7-ex-0363b59dd9bc-el-175" data-node="ex-0363b59dd9bc-el-175" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</AspectRatio>
</div>
</div>
</SigmaUIProvider>
);
}
Content collection
Content collection using the original AspectRatio primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { AspectRatio, DemoAction, 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-1tnam1p-l36chf-ex-5d601d35d164-el-176{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-176 \u003e *{width:100% !important}\n.sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-177{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-177 \u003e *{width:100% !important}\n.sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-178{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-178 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-176" data-node="ex-5d601d35d164-el-176" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<AspectRatio>
<div className="sigma-node sigma-export-1tnam1p-l36chf-ex-5d601d35d164-el-177" data-node="ex-5d601d35d164-el-177" 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-1tnam1p-l36chf-ex-5d601d35d164-el-178" data-node="ex-5d601d35d164-el-178" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</AspectRatio>
</div>
</div>
</SigmaUIProvider>
);
}
Compact context
Compact context using the original AspectRatio primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { AspectRatio, DemoAction, 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-3oven1-fp13ub-ex-fab4541edc14-el-179{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-179 \u003e *{width:100% !important}\n.sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-180{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-180 \u003e *{width:100% !important}\n.sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-181{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-181 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-179" data-node="ex-fab4541edc14-el-179" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<AspectRatio>
<div className="sigma-node sigma-export-3oven1-fp13ub-ex-fab4541edc14-el-180" data-node="ex-fab4541edc14-el-180" 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-3oven1-fp13ub-ex-fab4541edc14-el-181" data-node="ex-fab4541edc14-el-181" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</AspectRatio>
</div>
</div>
</SigmaUIProvider>
);
}
Responsive composition
Responsive composition using the original AspectRatio primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { AspectRatio, DemoAction, 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-1fu7lgz-nlt0k3-ex-71a706522f71-el-182{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-182 \u003e *{width:100% !important}\n.sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-183{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-183 \u003e *{width:100% !important}\n.sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-184{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-184 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-182" data-node="ex-71a706522f71-el-182" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<AspectRatio>
<div className="sigma-node sigma-export-1fu7lgz-nlt0k3-ex-71a706522f71-el-183" data-node="ex-71a706522f71-el-183" 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-1fu7lgz-nlt0k3-ex-71a706522f71-el-184" data-node="ex-71a706522f71-el-184" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</AspectRatio>
</div>
</div>
</SigmaUIProvider>
);
}
Editorial context
Editorial context using the original AspectRatio primitive and editable children.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { AspectRatio, DemoAction, 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-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-185{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-185 \u003e *{width:100% !important}\n.sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-186{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-186 \u003e *{width:100% !important}\n.sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-187{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-187 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-185" data-node="ex-55f5afca8e05-el-185" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<AspectRatio>
<div className="sigma-node sigma-export-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-186" data-node="ex-55f5afca8e05-el-186" 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-1w8dqcv-1pnbgyb-ex-55f5afca8e05-el-187" data-node="ex-55f5afca8e05-el-187" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<DemoAction variant={"outline"} disabled={false} aria-busy={false}>
{"Explore the local demo"}
</DemoAction>
</div>
</AspectRatio>
</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.