Skip to content
Back

Form autofillPro

Paste a signature or messy notes and the agent fills a contact form field by field, with confidence, source highlights, review and Undo.

oxyn add form-autofill
New contact
Paste a signature or notes. The agent fills the form.
Haiku
Thanks, Maya Patel Head of Partnerships at Lumen Labs maya.patel@lumenlabs.io | +1 (415) 555-0132 500 Howard St, Suite 300, San Francisco
Check the street and unit
1 to review
Filled 6 fields. 1 need review.
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Paste an email signature or messy notes and have the agent fill a contact (or lead, or ticket) form.
  • The user wants to see where each value came from and to check only the doubtful ones.

When not to use

  • A phone field with a searchable country picker, formatting as you type and E: use Phone input instead.
  • One input for every form: use Text Field instead.
  • Markdown that renders correctly while it streams: use Streaming markdown instead.

Installation

Form autofill is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add form-autofill

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Filled

A signature, filled with one field to review.

New contact
Paste a signature or notes. The agent fills the form.
Haiku
Thanks, Maya Patel Head of Partnerships at Lumen Labs maya.patel@lumenlabs.io | +1 (415) 555-0132 500 Howard St, Suite 300, San Francisco
Check the street and unit
1 to review
Filled 6 fields. 1 need review.
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Empty

Waiting for a paste; try a sample.

New contact
Paste a signature or notes. The agent fills the form.
Haiku
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Strict

A stricter gate (Oxyn plus).

New contact
Paste a signature or notes. The agent fills the form.
Haiku
Thanks, Maya Patel Head of Partnerships at Lumen Labs maya.patel@lumenlabs.io | +1 (415) 555-0132 500 Howard St, Suite 300, San Francisco
Check the street and unit
93%
4 to review
Filled 6 fields. 4 need review.
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

FormAutofill

PropTypeDefaultDescription
fieldsVec<FillField>Default::default()Fields (default: name, title, company, email, phone, address).
titleString"New contact"Card title.
descriptionString"Paste a signature or notes. The agent fills the form."One line under the title.
modelString"Haiku"Model named beside the paste area.
review_thresholdu880Below this confidence (0–100) a field asks for review.
gateboolDefault::default()Oxyn plus: show the threshold control.
submit_labelString"Save contact"Primary action.
prefillboolDefault::default()Start with a sample pasted (review sheets).
on_values_changeEventHandler<(String, String)>—Every value change: `(field, value)`.
on_submitEventHandler<Vec<(String, String)>>—Saved: every `(field, value)`.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
⌘orCtrlVPaste into the text area; the read starts right away
⌘orCtrlEnterRead typed text
EscStop a read; nothing changes
TabText area, Try sample, every field, the check buttons, Undo, Save

Accessibility

  • A polite region announces each step: reading, how many filled, which need review, undo and save.
  • Each filled input has an aria-description with its confidence and reason; review fields are aria-invalid.
  • Status is never colour alone: a dot plus a percentage or a word (Review, Checked, Edited).
From the spec

A polite region announces each step ("Reading the pasted text…", "Filled 6 fields. 1 need review.", "Check Address before saving", "Saved"). Each filled input has an aria-description with confidence and reason; review fields are aria-invalid. The pasted text is a focusable labelled region.

Motion & interaction

While reading, the model name shimmers. Each value fades in with a short tint on the field; its source in the pasted text highlights as it lands, and again on hover or focus of the field. The company field shows a logo slot. Status is a dot plus a word or percentage, never colour alone.

Timing
TransitionDurationEasingReduced motion
Read (demo)900 ms—same
Field stagger140 ms apart—0
Value fade200 msease.out1 ms
Field tint900 msease-outnone
Source highlight160 msease.outinstant

Responsive behaviour

  • Side by side from a 720 px container; below that the paste well stacks on top.
  • Under 440 px every field takes the full row.
Edge cases (spec)

Missing name: guessed from the email local part at low confidence. Personal email domains don't become companies. Phones without a country code are flagged. A second fill keeps Undo pointing at the values before the latest fill. Narrow: the paste well stacks over the form below 720 px; fields take the full row below 440 px. Very slow models: Stop stays available.

Notes for AI

  • Import FormAutofill from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: SmartFillEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI