Number Input
Bounded numeric controls
Five practical starting points. Explore a live example, then open its exact document in Studio.
Quantity control
Quantity control demonstrates bounded numeric controls. Edit content, composition and responsive styling in Studio.
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-elximx-d0ksdv-ex-0ea7d58a816c-el-187{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-elximx-d0ksdv-ex-0ea7d58a816c-el-187 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-elximx-d0ksdv-ex-0ea7d58a816c-el-187" data-node="ex-0ea7d58a816c-el-187" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"NumberInput"} props={{"alt":"SigmaUI abstract workspace illustration","description":"A considered space for your next idea.","gap":16,"items":["Design|24","Build|48","Review|72"],"label":"Quantity control","padding":24,"src":"/elements/product.svg","text":"standard","title":"Quantity control","value":1}} />
</div>
</div>
</SigmaUIProvider>
);
}
Guest count
Guest count demonstrates bounded numeric controls. Edit content, composition and responsive styling in Studio.
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-15uyi2p-1op7ugj-ex-4fd4d86f3b28-el-190{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-15uyi2p-1op7ugj-ex-4fd4d86f3b28-el-190 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-15uyi2p-1op7ugj-ex-4fd4d86f3b28-el-190" data-node="ex-4fd4d86f3b28-el-190" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"NumberInput"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Built for small teams doing meaningful work.","gap":16,"items":["Maya Chen|Online","Alex Rivera|Away"],"label":"Guest count","padding":16,"src":"/elements/product.svg","text":"compact","title":"Guest count","value":2}} />
</div>
</div>
</SigmaUIProvider>
);
}
Budget input
Budget input demonstrates bounded numeric controls. Edit content, composition and responsive styling in Studio.
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-15k591f-jq6ck3-ex-7dcb1d688981-el-193{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-15k591f-jq6ck3-ex-7dcb1d688981-el-193 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-15k591f-jq6ck3-ex-7dcb1d688981-el-193" data-node="ex-7dcb1d688981-el-193" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"NumberInput"} 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":"Budget input","padding":24,"src":"/elements/product.svg","text":"detailed","title":"Budget input","value":50}} />
</div>
</div>
</SigmaUIProvider>
);
}
Duration input
Duration input demonstrates bounded numeric controls. Edit content, composition and responsive styling in Studio.
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-mr7lg5-1fyl8oj-ex-1305ad4c12be-el-196{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-mr7lg5-1fyl8oj-ex-1305ad4c12be-el-196 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-mr7lg5-1fyl8oj-ex-1305ad4c12be-el-196" data-node="ex-1305ad4c12be-el-196" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"NumberInput"} 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":"Duration input","padding":32,"src":"/elements/product.svg","text":"featured","title":"Duration input","value":30}} />
</div>
</div>
</SigmaUIProvider>
);
}
Percentage input
Percentage input demonstrates bounded numeric controls. Edit content, composition and responsive styling in Studio.
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-p9bnjl-wm6gc3-ex-4f37445bfd23-el-199{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-p9bnjl-wm6gc3-ex-4f37445bfd23-el-199 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-p9bnjl-wm6gc3-ex-4f37445bfd23-el-199" data-node="ex-4f37445bfd23-el-199" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"NumberInput"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Make room for what matters.","gap":16,"items":["Getting started|A thoughtful beginning"],"label":"Percentage input","padding":12,"src":"/elements/product.svg","text":"minimal","title":"Percentage input","value":65}} />
</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.