Field
Action Field
A field with its action button inside the border: Enter submits with no key handler, and while the field is empty the button is disabled — there is nothing to press.
What you can change
- the label and placeholder copy, and the action button caption
- note and doneText — the line under the field before and after submitting; in doneText {code} is replaced by the entered value
- the onSubmit handler: it receives the entered value as a string
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/field-006?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in local variables --vibeui-field-006-*. A client component: "use client" for the sake of the value and the result. The wrapper is a real <form> with onSubmit and preventDefault, so Enter in the field presses the button without a single key handler. The button is disabled on an empty value, and the result is announced through role="status" and raises data-done on the root.
Tags
- field
- action
- promo
- form
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…