Floating Label
Labels that remain visible after entry
Five practical starting points. Explore a live example, then open its exact document in Studio.
Email field
Email field demonstrates labels that remain visible after entry. 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-18sstop-1ijr0s3-ex-828c62efc554-el-185{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-18sstop-1ijr0s3-ex-828c62efc554-el-185 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-18sstop-1ijr0s3-ex-828c62efc554-el-185" data-node="ex-828c62efc554-el-185" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FloatingLabel"} props={{"alt":"SigmaUI abstract workspace illustration","description":"A considered space for your next idea.","gap":16,"items":["Design|24","Build|48","Review|72"],"label":"Email field","padding":24,"src":"/elements/product.svg","text":"standard","title":"Email address","value":24}} />
</div>
</div>
</SigmaUIProvider>
);
}
Password field
Password field demonstrates labels that remain visible after entry. 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-1o5pfh5-t0o9o3-ex-d382f4e8687a-el-188{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-1o5pfh5-t0o9o3-ex-d382f4e8687a-el-188 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-1o5pfh5-t0o9o3-ex-d382f4e8687a-el-188" data-node="ex-d382f4e8687a-el-188" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"16px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FloatingLabel"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Built for small teams doing meaningful work.","gap":16,"items":["Maya Chen|Online","Alex Rivera|Away"],"label":"Password field","padding":16,"src":"/elements/product.svg","text":"compact","title":"Password","value":65}} />
</div>
</div>
</SigmaUIProvider>
);
}
Address field
Address field demonstrates labels that remain visible after entry. 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-unzz3n-1oo7syb-ex-dc7bd4283bd4-el-191{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-unzz3n-1oo7syb-ex-dc7bd4283bd4-el-191 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-unzz3n-1oo7syb-ex-dc7bd4283bd4-el-191" data-node="ex-dc7bd4283bd4-el-191" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"24px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FloatingLabel"} 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":"Address field","padding":24,"src":"/elements/product.svg","text":"detailed","title":"Street address","value":82}} />
</div>
</div>
</SigmaUIProvider>
);
}
Phone field
Phone field demonstrates labels that remain visible after entry. 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-194rts3-1jh47o3-ex-d05905cd0583-el-194{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-194rts3-1jh47o3-ex-d05905cd0583-el-194 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-194rts3-1jh47o3-ex-d05905cd0583-el-194" data-node="ex-d05905cd0583-el-194" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"32px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FloatingLabel"} 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":"Phone field","padding":32,"src":"/elements/product.svg","text":"featured","title":"Phone number","value":40}} />
</div>
</div>
</SigmaUIProvider>
);
}
Required field
Required field demonstrates labels that remain visible after entry. 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-2s6lpf-1ucwgyb-ex-cc98fd3e7629-el-197{width:100% !important;max-width:100% !important;position:relative !important;left:auto !important;top:auto !important}.sigma-export-2s6lpf-1ucwgyb-ex-cc98fd3e7629-el-197 \u003e *{width:100% !important}"}</style>
<div className="sigma-stack">
<div className="sigma-node sigma-export-2s6lpf-1ucwgyb-ex-cc98fd3e7629-el-197" data-node="ex-cc98fd3e7629-el-197" style={{"--node-gap":"16px","--node-mobile":1,"--node-padding":"12px","--node-tablet":2} as CSSProperties}>
<ExtendedElement kind={"FloatingLabel"} props={{"alt":"SigmaUI abstract workspace illustration","description":"Make room for what matters.","gap":16,"items":["Getting started|A thoughtful beginning"],"label":"Required field","padding":12,"src":"/elements/product.svg","text":"minimal","title":"Project name (required)","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.