Drawer
Contained side panels
Five practical starting points. Explore a live example, then open its exact document in Studio.
Shopping bag
Shopping bag demonstrates contained side panels. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { Drawer, 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-1x6lh6w-694r2a-ex-01646a41e758-el-94{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1x6lh6w-694r2a-ex-01646a41e758-el-94 \u003e *{width:100% !important}\n.sigma-export-1x6lh6w-694r2a-ex-01646a41e758-el-97{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1x6lh6w-694r2a-ex-01646a41e758-el-97 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1x6lh6w-694r2a-ex-01646a41e758-el-94" data-node="ex-01646a41e758-el-94" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<Drawer trigger={"Open bag"} title={"Your shopping bag"} description={"A considered space for your next idea."}>
<div className="sigma-node sigma-export-1x6lh6w-694r2a-ex-01646a41e758-el-97" data-node="ex-01646a41e758-el-97" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"Your bag is empty. Add an item in the local demo."}} />
</div>
</Drawer>
</div>
</div>
</SigmaUIProvider>
);
}
Filter panel
Filter panel demonstrates contained side panels. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { Checkbox, Drawer, Select, 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-1e9j723-1je7z9v-ex-28d8b785d90b-el-102{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-102 \u003e *{width:100% !important}\n.sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-105{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-105 \u003e *{width:100% !important}\n.sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-106{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-106 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-102" data-node="ex-28d8b785d90b-el-102" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<Drawer trigger={"Open filters"} title={"Filter products"} description={"Your workspace, with everything in reach."}>
<div className="sigma-node sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-105" data-node="ex-28d8b785d90b-el-105" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Checkbox label={"In stock only"} defaultChecked={false} disabled={false} />
</div>
<div className="sigma-node sigma-export-1e9j723-1je7z9v-ex-28d8b785d90b-el-106" data-node="ex-28d8b785d90b-el-106" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<Select label={"Price range"} options={["All prices","Under $50","Under $150"]} />
</div>
</Drawer>
</div>
</div>
</SigmaUIProvider>
);
}
Account panel
Account panel demonstrates contained side panels. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { Drawer, 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-1mfyhr2-1w2xlk2-ex-d39c21b5097b-el-107{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1mfyhr2-1w2xlk2-ex-d39c21b5097b-el-107 \u003e *{width:100% !important}\n.sigma-export-1mfyhr2-1w2xlk2-ex-d39c21b5097b-el-110{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1mfyhr2-1w2xlk2-ex-d39c21b5097b-el-110 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1mfyhr2-1w2xlk2-ex-d39c21b5097b-el-107" data-node="ex-d39c21b5097b-el-107" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<Drawer trigger={"Open account"} title={"Account preferences"} description={"Clear information. Confident decisions."}>
<div className="sigma-node sigma-export-1mfyhr2-1w2xlk2-ex-d39c21b5097b-el-110" data-node="ex-d39c21b5097b-el-110" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Form"} props={{"items":["Display name","Email"],"title":"Edit profile"}} />
</div>
</Drawer>
</div>
</div>
</SigmaUIProvider>
);
}
Notification center
Notification center demonstrates contained side panels. Edit content, composition and responsive styling in Studio.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { Drawer, 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-1amfj68-13u21z6-ex-30b023d76af5-el-111{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1amfj68-13u21z6-ex-30b023d76af5-el-111 \u003e *{width:100% !important}\n.sigma-export-1amfj68-13u21z6-ex-30b023d76af5-el-114{width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1amfj68-13u21z6-ex-30b023d76af5-el-114 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1amfj68-13u21z6-ex-30b023d76af5-el-111" data-node="ex-30b023d76af5-el-111" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<Drawer trigger={"View notifications"} title={"Notification center"} description={"Make room for what matters."}>
<div className="sigma-node sigma-export-1amfj68-13u21z6-ex-30b023d76af5-el-114" data-node="ex-30b023d76af5-el-114" style={{"--node-mobile":1,"--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"Text"} props={{"text":"You're all caught up."}} />
</div>
</Drawer>
</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.