Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: added field component
dev_wandry70b9863861e2
diff --git a/components/docs/examples/blocks/index.tsx b/components/docs/examples/blocks/index.tsxindex 316b1bed..fc97a68f 100644--- a/components/docs/examples/blocks/index.tsx+++ b/components/docs/examples/blocks/index.tsx@@ -51,8 +51,8 @@ export const blockExamples: Record<string, BlockExampleEntry> = {"signup-flow": {Component: SignupFlowExampleScene,code: signupFlowExampleCode,- // Toast dismiss 210 + ~20 settle (US-B001).- durationInFrames: 230,+ // Toast dismiss 300 + 14 + ~16 settle (signup card fill → submit → toast).+ durationInFrames: 330,fps: FPS,width: W,height: H,diff --git a/components/docs/examples/signup-flow-example.tsx b/components/docs/examples/signup-flow-example.tsxindex a9a06103..596de274 100644--- a/components/docs/examples/signup-flow-example.tsx+++ b/components/docs/examples/signup-flow-example.tsx@@ -3,15 +3,15 @@import { SignupFlow } from "@/registry/remocn-ui/signup-flow";/**- * Fixed lifecycle demo for the `signup-flow` block: a cursor clicks the email- * field, the value types in, the "agree" box checks, the Create button runs- * idle → press → loading → success, and a success toast slides in. The block is- * a pure orchestrator — every channel comes from a composed primitive's hook.+ * Fixed lifecycle demo for the `signup-flow` block: a signup card whose cursor+ * fills each labeled field top-to-bottom (Full Name → Email → Password →+ * Confirm), then clicks "Create account" (hover → press → loading → success),+ * and a success toast slides in. The block is a pure orchestrator — every+ * channel comes from a composed primitive's hook.*- * Timeline (US-B001 beat table): cursor click 30 ≡ input active 30; typing- * 30→70; checkbox 82; button hover 95 ≡ cursor click 95 → press 104 → loading- * 110 → success 150 ≡ toast enter 150; toast dismiss 210. durationInFrames 230- * (210 + ~20 settle).+ * Timeline: cursor click ≡ field active at 18 / 52 / 96 / 134; Create hover 176+ * ≡ cursor click 176 → press 186 → loading 192 → success 234 ≡ toast enter 234;+ * toast dismiss 300. durationInFrames 330 (314 + ~16 settle).*/export const SignupFlowExampleScene = () => <SignupFlow />;diff --git a/content/docs/ui/blocks/signup-flow.mdx b/content/docs/ui/blocks/signup-flow.mdxindex 82c9b378..4107de25 100644--- a/content/docs/ui/blocks/signup-flow.mdx+++ b/content/docs/ui/blocks/signup-flow.mdx@@ -1,53 +1,84 @@---title: SignupFlow-description: Cursor-driven account creation with email input, agreement, and success feedback+description: A cursor-driven signup card — labeled fields fill top-to-bottom, then submit with success feedback---<BlockPreview name="signup-flow" />-A composition scene demonstrating cursor-driven account creation. The user enters an email, agrees to terms, clicks create, and receives a success confirmation via toast. Each step is driven by primitives orchestrated on a shared timeline.+A composition scene that renders a real shadcn-style signup card — header, labeled Full Name / Email / Password / Confirm Password fields, a primary "Create account" button, a "Sign up with Google" outline button, and a sign-in footer. The cursor fills each field top-to-bottom, then submits and receives a success confirmation via toast. Each step is driven by primitives orchestrated on a shared timeline.## Installation<InstallBlock name="signup-flow" /><Note>-Installing `signup-flow` automatically installs the shared `remocn-ui` core and all composed primitives via `registryDependencies`: cursor, input, checkbox, button, and toast. You do not need to install them separately.+Installing `signup-flow` automatically installs the shared `remocn-ui` core and all composed primitives via `registryDependencies`: cursor, input, button, and toast. You do not need to install them separately.</Note>## Composed primitives- **Cursor** — animated pointer with click ripples-- **Input** — text reveal animation with active state-- **Checkbox** — animated checkmark on agreement-- **Button** — hover/press/loading/success state progression+- **Input** — text reveal animation with active/typing states (one per field)+- **Button** — hover/press/loading/success progression (primary) and a static outline button- **Toast** — success message auto-dismiss+The card chrome (surface, header, field labels, descriptions, and footer) is static layout drawn from the resolved theme. The card surface uses `theme.background` so the Input and Button atoms blend into it in both light and dark; the stage sits on `theme.muted` so the card lifts off the page via tone, border, and shadow.+## Timeline narrative-The scene opens with the cursor parked in the top-left corner. At frame 30, the cursor moves to the email input and clicks, triggering the input to become active and begin revealing the pre-filled email address letter-by-letter. At frame 80, the cursor arrives at the checkbox and clicks again, drawing the checkmark with a +2-frame offset. The cursor then moves to the create button at frame 95, triggering hover and press states in sequence. At frame 110, the button enters the loading state (showing a spinner), and by frame 150 it transitions to success (checkmark icon). Simultaneously at frame 150, the success toast appears and auto-dismisses at frame 210.+The scene opens with the cursor parked in the top-left. It clicks the Full Name field at frame 18 (the field focuses and types in), then Email at 52, Password at 96, and Confirm Password at 134 — each cursor-click frame matches that field's `active` frame, and each field's typed value reveals before the cursor moves on. At frame 176 the cursor reaches the Create account button (hover), which presses at 186, enters loading (spinner) at 192, and resolves to success at 234. Simultaneously at 234 the success toast slides in, auto-dismissing at 300.## Props<PropsTablerows={[+ {+ name: "title",+ type: "string",+ default: "\"Create an account\"",+ description: "Card title.",+ },+ {+ name: "description",+ type: "string",+ default: "\"Enter your information below to create your account\"",+ description: "Card description under the title.",+ },+ {+ name: "fullName",+ type: "string",+ default: "\"John Doe\"",+ description: "Value typed into the Full Name field.",+ },{name: "email",type: "string",- default: "\"[email protected]\"",- description: "Email address to be revealed during input animation.",+ default: "\"[email protected]\"",+ description: "Value typed into the Email field.",},{- name: "agreeLabel",+ name: "password",type: "string",- default: "\"I agree to the terms\"",- description: "Text label for the checkbox.",+ default: "\"••••••••\"",+ description: "Masked value typed into the Password and Confirm fields.",},{- name: "buttonLabel",+ name: "createLabel",type: "string",default: "\"Create account\"",- description: "Text displayed on the create button.",+ description: "Primary submit button label.",+ },+ {+ name: "googleLabel",+ type: "string",+ default: "\"Sign up with Google\"",+ description: "Outline (social) button label.",+ },+ {+ name: "signinText",+ type: "string",+ default: "\"Already have an account?\"",+ description: "Footer prompt shown before the Sign in link.",},{name: "toastTitle",diff --git a/content/docs/ui/components/input.mdx b/content/docs/ui/components/input.mdxindex b6f1d0eb..6e2d3c4d 100644--- a/content/docs/ui/components/input.mdx+++ b/content/docs/ui/components/input.mdx@@ -148,3 +148,100 @@ The `duration` field on each step overrides the file's `DEFAULT_DURATION` for th},]}/>++## Field — composing labeled inputs++`Field` is a small static layout family for building labeled form rows, modeled on+[shadcn's Field](https://ui.shadcn.com/docs/components/radix/field). It reads no+frame and holds no state — colors come from the resolved theme — so it composes+cleanly inside Remotion scenes (it is what the `signup-flow` block uses to lay out+its form). It ships as its own registry item.++<InstallBlock name="field" />++### Structure++- **`FieldGroup`** — stacks multiple `Field`s in a column with uniform vertical rhythm (`gap`, default 16).+- **`Field`** — one field: label + control + optional description, stacked (`gap`, default 6).+- **`FieldLabel`** — the label (foreground, medium weight, single line).+- **`FieldControl`** — a relative, fixed-height slot (`height`, default 40) for a control. remocn-ui controls (`Input`, `Button`) render `position:absolute; inset:0`, so they go **inside** `FieldControl`, which it fills.+- **`FieldDescription`** — muted helper text under a control, or a centered footer line (`align="center"`).++### Usage++```tsx+import { Input } from "@/components/remocn/input";+import { useInputTransition } from "@/components/remocn/use-input-transition";+import {+ Field,+ FieldControl,+ FieldDescription,+ FieldGroup,+ FieldLabel,+} from "@/components/remocn/field";++export const Scene = () => {+ const style = useInputTransition([+ { at: 10, state: "active", duration: 6 },+ { at: 12, state: "typing", duration: 24 },+ ]);++ return (+ <FieldGroup>+ <Field>+ <FieldLabel>Email</FieldLabel>+ <FieldControl>+ <Input placeholder="[email protected]" value="[email protected]" style={style} />+ </FieldControl>+ <FieldDescription>We'll use this to contact you.</FieldDescription>+ </Field>+ </FieldGroup>+ );+};+```++### Props++<PropsTable+ rows={[+ {+ name: "FieldGroup.gap",+ type: "number",+ default: "16",+ description: "Vertical space (px) between stacked fields.",+ },+ {+ name: "Field.gap",+ type: "number",+ default: "6",+ description: "Vertical space (px) between the label, control, and description.",+ },+ {+ name: "FieldControl.height",+ type: "number",+ default: "40",+ description: "Slot height (px); the absolute control fills it. Match it to the control's size.",+ },+ {+ name: "FieldDescription.align",+ type: "\"start\" | \"center\"",+ default: "\"start\"",+ description: "Text alignment within the field column (use center for a footer line).",+ },+ {+ name: "mode",+ type: "\"light\" | \"dark\"",+ description: "Color mode for FieldLabel / FieldDescription text (forwarded to useRemocnTheme).",+ },+ {+ name: "theme",+ type: "Partial<RemocnTheme>",+ description: "Theme override for FieldLabel / FieldDescription colors. Concrete oklch/hex/rgb values.",+ },+ {+ name: "style",+ type: "CSSProperties",+ description: "Optional inline-style passthrough merged last on any Field part.",+ },+ ]}+/>diff --git a/registry/remocn-ui/field/index.tsx b/registry/remocn-ui/field/index.tsxnew file mode 100644index 00000000..bec4d7fa--- /dev/null+++ b/registry/remocn-ui/field/index.tsx@@ -0,0 +1,121 @@+"use client";++import type { CSSProperties, ReactNode } from "react";+import { type RemocnTheme, useRemocnTheme } from "@/lib/remocn-ui";++/**+ * Field — a small, static layout family for composing labeled form controls,+ * modeled on shadcn's Field (FieldGroup ▸ Field ▸ FieldLabel / control /+ * FieldDescription). It reads no frame and holds no state; colors come from the+ * resolved theme. Stack note: remocn-ui controls (Input, Button) render+ * `position:absolute; inset:0`, so a control goes inside `FieldControl` — a+ * relative, fixed-height slot the absolute atom fills.+ */++export interface FieldGroupProps {+ children: ReactNode;+ /** Vertical space (px) between stacked fields. */+ gap?: number;+ style?: CSSProperties;+}++/** Stacks multiple `Field`s in a column with uniform vertical rhythm. */+export function FieldGroup({ children, gap = 16, style }: FieldGroupProps) {+ return (+ <div style={{ display: "flex", flexDirection: "column", gap, ...style }}>+ {children}+ </div>+ );+}++export interface FieldProps {+ children: ReactNode;+ /** Vertical space (px) between the label, control, and description. */+ gap?: number;+ style?: CSSProperties;+}++/** One field: label + control + optional description, stacked. */+export function Field({ children, gap = 6, style }: FieldProps) {+ return (+ <div style={{ display: "flex", flexDirection: "column", gap, ...style }}>+ {children}+ </div>+ );+}++export interface FieldLabelProps {+ children: ReactNode;+ mode?: "light" | "dark";+ theme?: Partial<RemocnTheme>;+ style?: CSSProperties;+}++/** Field label — foreground, medium weight. Single line (predictable height). */+export function FieldLabel({ children, mode, theme, style }: FieldLabelProps) {+ const t = useRemocnTheme(theme, mode);+ return (+ <div+ style={{+ fontSize: 13,+ lineHeight: "18px",+ fontWeight: 500,+ letterSpacing: "-0.01em",+ color: t.foreground,+ ...style,+ }}+ >+ {children}+ </div>+ );+}++export interface FieldDescriptionProps {+ children: ReactNode;+ /** Text alignment within the field column. */+ align?: "start" | "center";+ mode?: "light" | "dark";+ theme?: Partial<RemocnTheme>;+ style?: CSSProperties;+}++/** Muted helper text under a control (or a centered footer line). */+export function FieldDescription({+ children,+ align = "start",+ mode,+ theme,+ style,+}: FieldDescriptionProps) {+ const t = useRemocnTheme(theme, mode);+ return (+ <div+ style={{+ fontSize: 12,+ lineHeight: "16px",+ color: t.mutedForeground,+ textAlign: align === "center" ? "center" : "left",+ ...style,+ }}+ >+ {children}+ </div>+ );+}++export interface FieldControlProps {+ children: ReactNode;+ /** Slot height (px) — the absolute control fills it. Matches the control's size. */+ height?: number;+ style?: CSSProperties;+}++/**+ * Relative, fixed-height slot for an absolute remocn-ui control (Input/Button,+ * which render `position:absolute; inset:0`). The control fills the slot.+ */+export function FieldControl({ children, height = 40, style }: FieldControlProps) {+ return (+ <div style={{ position: "relative", height, ...style }}>{children}</div>+ );+}diff --git a/registry/remocn-ui/registry.json b/registry/remocn-ui/registry.jsonindex 88189195..4acddd85 100644--- a/registry/remocn-ui/registry.json+++ b/registry/remocn-ui/registry.json@@ -257,6 +257,21 @@}]},+ {+ "name": "field",+ "type": "registry:component",+ "title": "UI Field",+ "description": "A static layout family for composing labeled form controls, modeled on shadcn's Field: FieldGroup ▸ Field ▸ FieldLabel / FieldControl / FieldDescription. Reads no frame and holds no state — colors come from the resolved theme. FieldControl is a relative fixed-height slot for the absolute remocn-ui controls (Input, Button).",+ "dependencies": ["remotion"],+ "registryDependencies": ["remocn-ui"],+ "files": [+ {+ "path": "field/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/field.tsx"+ }+ ]+ },{"name": "select-item","type": "registry:component",@@ -656,9 +671,9 @@"name": "signup-flow","type": "registry:component","title": "UI Signup Flow",- "description": "A cursor-driven signup composition: the pointer clicks the email field, the value types in, the agree box checks, the Create button runs idle → press → loading → success, and a success toast slides in. A pure orchestrator — every channel comes from a composed primitive's transition hook.",+ "description": "A signup card composition: a real shadcn-style card (header, labeled Full Name / Email / Password / Confirm fields, primary + Google-outline buttons, sign-in footer) whose cursor fills each field top-to-bottom, then clicks Create account (hover → press → loading → success) as a success toast slides in. A pure orchestrator — every channel comes from a composed primitive's transition hook.","dependencies": ["remotion"],- "registryDependencies": ["remocn-ui", "cursor", "input", "checkbox", "button", "toast"],+ "registryDependencies": ["remocn-ui", "cursor", "input", "button", "toast", "field"],"files": [{"path": "signup-flow/index.tsx",diff --git a/registry/remocn-ui/signup-flow/index.tsx b/registry/remocn-ui/signup-flow/index.tsxindex 04d827ad..bf1c16e4 100644--- a/registry/remocn-ui/signup-flow/index.tsx+++ b/registry/remocn-ui/signup-flow/index.tsx@@ -5,59 +5,87 @@ import { Cursor } from "@/components/remocn/cursor";import { useCursorPath } from "@/components/remocn/use-cursor-path";import { Input } from "@/components/remocn/input";import { useInputTransition } from "@/components/remocn/use-input-transition";-import { Checkbox } from "@/components/remocn/checkbox";-import { useCheckboxTransition } from "@/components/remocn/use-checkbox-transition";import { Button } from "@/components/remocn/button";import { useButtonTransition } from "@/components/remocn/use-button-transition";import { Toast } from "@/components/remocn/toast";import { useToastTransition } from "@/components/remocn/use-toast-transition";+import {+ Field,+ FieldControl,+ FieldDescription,+ FieldGroup,+ FieldLabel,+} from "@/components/remocn/field";export interface SignupFlowProps {- /** Value typed into the email field during the reveal. */+ /** Card title. */+ title?: string;+ /** Card description under the title. */+ description?: string;+ /** Value typed into the Full Name field. */+ fullName?: string;+ /** Value typed into the Email field. */email?: string;- /** Label rendered next to the checkbox. */- agreeLabel?: string;- /** Submit button label. */- buttonLabel?: string;+ /** Value typed into the password fields (rendered as the masked string). */+ password?: string;+ /** Primary submit button label. */+ createLabel?: string;+ /** Outline (social) button label. */+ googleLabel?: string;+ /** Footer prompt shown before the "Sign in" link. */+ signinText?: string;/** Title shown in the success toast. */toastTitle?: string;mode?: "light" | "dark";theme?: Partial<RemocnTheme>;}-// Stage layout — each form atom paints its own full-bleed background, so it is-// pinned inside a non-overlapping slot whose box it fills. The slots stack into-// a centered vertical form; the cursor tip targets each slot's visual center.+// ── Stage + card geometry (1280×720). The card surface is theme.background so+// the Input/Button atoms (which paint their own inset:0 theme.background fill)+// blend into it in BOTH light and dark; the stage sits on theme.muted so the+// card lifts off the page via tone + border + shadow. Card content flows in a+// padded column; the cursor targets each control's vertical center, derived+// from the fixed field metrics below (label 18 + gap 6 + control 40, group+// gap 16) so the click visually lands on the field. The focus itself is+// frame-driven (each click `at` == the field's `active` `at`), not position-+// driven, so the animation stays exact regardless of pixel rounding.const STAGE_W = 1280;-const FORM_W = 440;-const FORM_LEFT = (STAGE_W - FORM_W) / 2; // 420--const INPUT_TOP = 206;-const INPUT_H = 90;-const CHECK_TOP = 318;-const CHECK_H = 52;-const BUTTON_TOP = 392;-const BUTTON_H = 84;--// Cursor tip targets (slot centers on the 1280×720 stage).-const INPUT_X = STAGE_W / 2;-const INPUT_Y = INPUT_TOP + INPUT_H / 2; // 251-const CHECK_X = STAGE_W / 2;-const CHECK_Y = CHECK_TOP + CHECK_H / 2; // 344-const BTN_X = STAGE_W / 2;-const BTN_Y = BUTTON_TOP + BUTTON_H / 2; // 434+const CARD_W = 376;+const CARD_TOP = 48;+const CARD_LEFT = (STAGE_W - CARD_W) / 2; // 452+const CENTER_X = STAGE_W / 2; // 640 — the centered content column++// Cursor tip targets — each control's vertical center (see metrics above).+const NAME_Y = 196;+const EMAIL_Y = 276;+const PASS_Y = 378;+const CONFIRM_Y = 480;+const CREATE_Y = 544;/**- * Cursor-driven signup: click the email field → typing reveal → check "agree" →- * click Create → loading → success → success toast. A pure orchestrator — every- * animated channel comes from a primitive's own transition hook- * (`useCursorPath`/`use*Transition`); the block holds no state, effects, or- * frame reads of its own. Beat timings mirror US-B001's beat table.+ * Cursor-driven signup card: the pointer fills each labeled field top-to-bottom+ * (Full Name → Email → Password → Confirm), then clicks "Create account"+ * (hover → press → loading → success) and a success toast slides in. A pure+ * orchestrator — every animated channel comes from a composed primitive's own+ * transition hook (`useCursorPath` / `use*Transition`); the block holds no+ * state, effects, or frame reads of its own. The card chrome and form layout+ * are composed from the static `Field` family (FieldGroup / Field / FieldLabel+ * / FieldControl / FieldDescription).+ *+ * Frame-sync: each cursor-click `at` equals the field's `active` `at`+ * (18, 52, 96, 134) and the button `hover` `at` (176); the button `success`+ * `at` equals the toast enter `at` (234). Type windows never overlap the next+ * field's click.*/export function SignupFlow({- email = "[email protected]",- agreeLabel = "I agree to the terms",- buttonLabel = "Create account",+ title = "Create an account",+ description = "Enter your information below to create your account",+ fullName = "John Doe",+ email = "[email protected]",+ password = "••••••••",+ createLabel = "Create account",+ googleLabel = "Sign up with Google",+ signinText = "Already have an account?",toastTitle = "Account created",mode = "light",theme,@@ -65,48 +93,65 @@ export function SignupFlow({const resolved = useRemocnTheme(theme, mode);const opts = { mode, theme };- // Cursor: park top-left → arrive Input (click 30) → arrive Checkbox (click- // 80) → arrive Button (click 95). Each click `at` matches the target atom's- // state change `at` (beats 2≡3, 5/6, 7≡8).+ // Cursor: park → Name (18) → Email (52) → Password (96) → Confirm (134) →+ // Create (176). Each click `at` matches the target field's `active`/`hover`.const cursorStyle = useCursorPath([- { at: 0, x: 120, y: 90 },- { at: 30, x: INPUT_X, y: INPUT_Y, duration: 26, click: true },- { at: 80, x: CHECK_X, y: CHECK_Y, duration: 30, click: true },- { at: 95, x: BTN_X, y: BTN_Y, duration: 13, click: true },+ { at: 0, x: 160, y: 120 },+ { at: 18, x: CENTER_X, y: NAME_Y, duration: 18, click: true },+ { at: 52, x: CENTER_X, y: EMAIL_Y, duration: 30, click: true },+ { at: 96, x: CENTER_X, y: PASS_Y, duration: 40, click: true },+ { at: 134, x: CENTER_X, y: CONFIRM_Y, duration: 32, click: true },+ { at: 176, x: CENTER_X, y: CREATE_Y, duration: 38, click: true },]);- // Input: focus on click (30), then reveal the typed email over 30→70.- const inputStyle = useInputTransition(+ // Each field focuses on its click, then reveals its typed value. Each field's+ // own hook holds the filled visual afterward.+ const nameStyle = useInputTransition([- { at: 30, state: "active", duration: 6 },- { at: 30, state: "typing", duration: 40 },+ { at: 18, state: "active", duration: 6 },+ { at: 20, state: "typing", duration: 20 },],opts,);-- // Checkbox: draw the checkmark just after the click lands (82 = click+2).- const checkboxStyle = useCheckboxTransition(- [{ at: 82, state: "checked", duration: 12 }],+ const emailStyle = useInputTransition(+ [+ { at: 52, state: "active", duration: 6 },+ { at: 54, state: "typing", duration: 28 },+ ],+ opts,+ );+ const passStyle = useInputTransition(+ [+ { at: 96, state: "active", duration: 6 },+ { at: 98, state: "typing", duration: 22 },+ ],+ opts,+ );+ const confirmStyle = useInputTransition(+ [+ { at: 134, state: "active", duration: 6 },+ { at: 136, state: "typing", duration: 22 },+ ],opts,);- // Button: hover on cursor arrival (95) → press → loading spinner → success.+ // Create button: hover on arrival (176) → press → loading spinner → success.const buttonStyle = useButtonTransition([- { at: 95, state: "hover", duration: 8 },- { at: 104, state: "press", duration: 6 },- { at: 110, state: "loading", duration: 6 },- { at: 150, state: "success", duration: 16 },+ { at: 176, state: "hover", duration: 8 },+ { at: 186, state: "press", duration: 6 },+ { at: 192, state: "loading", duration: 6 },+ { at: 234, state: "success", duration: 16 },],opts,);- // Toast: enters with success (150), auto-dismisses at 210. (No `theme`- // option — the Toast component itself resolves the theme for its surface.)+ // Toast: enters with success (234), auto-dismisses at 300. (No `theme` option+ // — the Toast component resolves the theme for its own surface.)const toastStyle = useToastTransition([- { at: 150, state: "visible", duration: 14 },- { at: 210, state: "hidden", duration: 14 },+ { at: 234, state: "visible", duration: 14 },+ { at: 300, state: "hidden", duration: 14 },],{ mode },);@@ -117,66 +162,165 @@ export function SignupFlow({position: "relative",width: "100%",height: "100%",- background: resolved.background,+ background: resolved.muted,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}>- {/* Email field slot — Input fills this box and centers its 320px field. */}+ {/* Card — surface = theme.background so the atoms' fills blend in. The+ content flows in a padded column. */}<divstyle={{position: "absolute",- left: FORM_LEFT,- top: INPUT_TOP,- width: FORM_W,- height: INPUT_H,+ left: CARD_LEFT,+ top: CARD_TOP,+ width: CARD_W,+ height: 620,+ boxSizing: "border-box",+ padding: 28,+ display: "flex",+ flexDirection: "column",+ gap: 24,+ background: resolved.background,+ border: `1px solid ${resolved.border}`,+ borderRadius: 14,+ boxShadow:+ "0 10px 30px -12px rgba(0,0,0,0.22), 0 2px 8px -3px rgba(0,0,0,0.10)",}}>- <Input- placeholder="[email protected]"- value={email}- valueWidth={108}- style={inputStyle}- mode={mode}- theme={theme}- />- </div>+ {/* Header. */}+ <div style={{ display: "flex", flexDirection: "column", gap: 4 }}>+ <div+ style={{+ fontSize: 22,+ lineHeight: "28px",+ fontWeight: 600,+ letterSpacing: "-0.02em",+ color: resolved.cardForeground,+ }}+ >+ {title}+ </div>+ <div+ style={{+ fontSize: 14,+ lineHeight: "20px",+ color: resolved.mutedForeground,+ }}+ >+ {description}+ </div>+ </div>- {/* Agree checkbox slot. */}- <div- style={{- position: "absolute",- left: FORM_LEFT,- top: CHECK_TOP,- width: FORM_W,- height: CHECK_H,- }}- >- <Checkbox- label={agreeLabel}- style={checkboxStyle}- mode={mode}- theme={theme}- />- </div>+ {/* Fields. */}+ <FieldGroup gap={16}>+ <Field>+ <FieldLabel mode={mode} theme={theme}>+ Full Name+ </FieldLabel>+ <FieldControl>+ <Input+ placeholder={fullName}+ value={fullName}+ valueWidth={72}+ style={nameStyle}+ mode={mode}+ theme={theme}+ />+ </FieldControl>+ </Field>- {/* Submit button slot. */}- <div- style={{- position: "absolute",- left: FORM_LEFT,- top: BUTTON_TOP,- width: FORM_W,- height: BUTTON_H,- }}- >- <Button- label={buttonLabel}- style={buttonStyle}- mode={mode}- theme={theme}- />+ <Field>+ <FieldLabel mode={mode} theme={theme}>+ </FieldLabel>+ <FieldControl>+ <Input+ placeholder={email}+ value={email}+ valueWidth={108}+ style={emailStyle}+ mode={mode}+ theme={theme}+ />+ </FieldControl>+ <FieldDescription mode={mode} theme={theme}>+ We'll use this to contact you.+ </FieldDescription>+ </Field>++ <Field>+ <FieldLabel mode={mode} theme={theme}>+ Password+ </FieldLabel>+ <FieldControl>+ <Input+ placeholder={password}+ value={password}+ valueWidth={70}+ style={passStyle}+ mode={mode}+ theme={theme}+ />+ </FieldControl>+ <FieldDescription mode={mode} theme={theme}>+ Must be at least 8 characters long.+ </FieldDescription>+ </Field>++ <Field>+ <FieldLabel mode={mode} theme={theme}>+ Confirm Password+ </FieldLabel>+ <FieldControl>+ <Input+ placeholder={password}+ value={password}+ valueWidth={70}+ style={confirmStyle}+ mode={mode}+ theme={theme}+ />+ </FieldControl>+ </Field>+ </FieldGroup>++ {/* Actions + footer. */}+ <Field gap={10}>+ <FieldControl>+ <Button+ label={createLabel}+ style={buttonStyle}+ mode={mode}+ theme={theme}+ />+ </FieldControl>+ <FieldControl>+ <Button+ label={googleLabel}+ variant="outline"+ state="idle"+ mode={mode}+ theme={theme}+ />+ </FieldControl>+ <FieldDescription align="center" mode={mode} theme={theme}>+ {signinText}{" "}+ <span+ style={{+ color: resolved.foreground,+ fontWeight: 500,+ textDecoration: "underline",+ textUnderlineOffset: 2,+ }}+ >+ Sign in+ </span>+ </FieldDescription>+ </Field></div>- {/* Success toast, anchored bottom-right. */}+ {/* Success toast, anchored bottom-right of the stage. */}<div style={{ position: "absolute", right: 32, bottom: 32 }}><Toasttitle={toastTitle}