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-9lpo1-l03y2b-ex-5f8785378859-el-170{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-9lpo1-l03y2b-ex-5f8785378859-el-170 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-9lpo1-l03y2b-ex-5f8785378859-el-170" data-node="ex-5f8785378859-el-170" 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-p22iix-t2xrn7-ex-cbce4e621887-el-173{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-p22iix-t2xrn7-ex-cbce4e621887-el-173 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-p22iix-t2xrn7-ex-cbce4e621887-el-173" data-node="ex-cbce4e621887-el-173" 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-rslkqd-d75trn-ex-41cb6b5f8a30-el-176{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-rslkqd-d75trn-ex-41cb6b5f8a30-el-176 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-rslkqd-d75trn-ex-41cb6b5f8a30-el-176" data-node="ex-41cb6b5f8a30-el-176" 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-1g4wyfv-1879hoz-ex-6bcd33807021-el-179{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1g4wyfv-1879hoz-ex-6bcd33807021-el-179 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1g4wyfv-1879hoz-ex-6bcd33807021-el-179" data-node="ex-6bcd33807021-el-179" 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-ns6tyt-1exd20j-ex-7fee6a3e6e70-el-182{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-ns6tyt-1exd20j-ex-7fee6a3e6e70-el-182 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-ns6tyt-1exd20j-ex-7fee6a3e6e70-el-182" data-node="ex-7fee6a3e6e70-el-182" 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.