بنقرة واحدة
vani-forms-inputs
Handle forms and inputs with explicit updates and focus safety
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Handle forms and inputs with explicit updates and focus safety
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create a tiny global store with explicit subscriptions
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples. Use when the user mentions Vani SPA app, src/spa-app, landing page/homepage, or landing examples.
Mount Vani components inside existing apps or DOM islands
Build scalable lists with keyed rows and per-item updates
Schedule explicit updates with microtasks and transitions
Create a minimal Vani SPA root with explicit updates
| name | vani-forms-inputs |
| description | Handle forms and inputs with explicit updates and focus safety |
Instructions for building forms that update on submit or preserve focus during controlled input.
Use this when you need form handling, text inputs, or focus-safe controlled inputs.
handle.update().DomRef, call handle.updateSync(), then restore
focus/selection.submit or blur, defaults to submit)false)Form)Example 1 usage pattern:
Create a contact form that updates the UI only after submit.
Example 2 usage pattern:
Implement a controlled input that preserves focus with a DomRef.
Example output:
Created: src/contact-form.ts
Notes: Inputs are uncontrolled until submit.
name: vani-forms-inputs description: Implement Vani forms and inputs without losing focus. argument-hint: "[form or input behavior]"
Use this skill when handling inputs, forms, or focus-sensitive UI in Vani.
Follow these steps:
oninput without calling handle.update().handle.update().DomRef, call handle.updateSync(), then restore focus/selection.@vanijs/vani or other public packages.