File Upload
Local file selection without network submission
Five practical starting points. Explore a live example, then open its exact document in Studio.
Single document
Single document demonstrates local file selection without network submission. Edit content, composition and responsive styling in Studio.
Single document
A considered space for your next idea.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { 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-1j9ednr-1a724r7-ex-2c7401c499e6-el-155{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1j9ednr-1a724r7-ex-2c7401c499e6-el-155 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1j9ednr-1a724r7-ex-2c7401c499e6-el-155" data-node="ex-2c7401c499e6-el-155" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FileUpload"} props={{"alt":"SigmaUI abstract workspace illustration","description":"A considered space for your next idea.","gap":16,"items":["Design|24","Build|48","Review|72"],"label":"Single document","padding":24,"src":"/elements/product.svg","text":"standard","title":"Single document","value":24}} />
</div>
</div>
</SigmaUIProvider>
);
}
Image preview
Image preview demonstrates local file selection without network submission. Edit content, composition and responsive styling in Studio.
Image preview
Built for small teams doing meaningful work.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { 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-pouqbn-cxcmqb-ex-744b61e4084a-el-158{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-pouqbn-cxcmqb-ex-744b61e4084a-el-158 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-pouqbn-cxcmqb-ex-744b61e4084a-el-158" data-node="ex-744b61e4084a-el-158" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FileUpload"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Built for small teams doing meaningful work.","gap":16,"items":["Maya Chen|Online","Alex Rivera|Away"],"label":"Image preview","padding":16,"src":"/elements/product.svg","text":"compact","title":"Image preview","value":65}} />
</div>
</div>
</SigmaUIProvider>
);
}
Multiple files
Multiple files demonstrates local file selection without network submission. Edit content, composition and responsive styling in Studio.
Multiple files
Your workspace, with everything in reach.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { 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-rbzzx-2e9pv-ex-2420d9bc8650-el-161{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-rbzzx-2e9pv-ex-2420d9bc8650-el-161 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-rbzzx-2e9pv-ex-2420d9bc8650-el-161" data-node="ex-2420d9bc8650-el-161" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FileUpload"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Your workspace, with everything in reach.","gap":16,"items":["Overview|Start here","Projects|Your recent work","Settings|Preferences"],"label":"Multiple files","padding":24,"src":"/elements/product.svg","text":"detailed","title":"Multiple files","value":82}} />
</div>
</div>
</SigmaUIProvider>
);
}
Avatar upload
Avatar upload demonstrates local file selection without network submission. Edit content, composition and responsive styling in Studio.
Avatar upload
Clear information. Confident decisions.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { 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-unykx3-wsah77-ex-d15bc9e52adb-el-164{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-unykx3-wsah77-ex-d15bc9e52adb-el-164 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-unykx3-wsah77-ex-d15bc9e52adb-el-164" data-node="ex-d15bc9e52adb-el-164" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FileUpload"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Clear information. Confident decisions.","gap":16,"items":["First milestone|12 Oct","Second milestone|14 Oct","Launch|18 Oct"],"label":"Avatar upload","padding":32,"src":"/elements/product.svg","text":"featured","title":"Avatar upload","value":40}} />
</div>
</div>
</SigmaUIProvider>
);
}
Size validation
Size validation demonstrates local file selection without network submission. Edit content, composition and responsive styling in Studio.
Size validation
Make room for what matters.
Usage code · exact rendered document
'use client';
import type { CSSProperties } from "react";
import { 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-1iy0r3v-1vdxkur-ex-5cd9084adf19-el-167{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1iy0r3v-1vdxkur-ex-5cd9084adf19-el-167 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1iy0r3v-1vdxkur-ex-5cd9084adf19-el-167" data-node="ex-5cd9084adf19-el-167" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FileUpload"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Make room for what matters.","gap":16,"items":["Getting started|A thoughtful beginning"],"label":"Size validation","padding":12,"src":"/elements/product.svg","text":"minimal","title":"Size validation","value":100}} />
</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.