vani-forms-inputs
Installation
SKILL.md
Forms and Inputs
Instructions for building forms that update on submit or preserve focus during controlled input.
When to Use
Use this when you need form handling, text inputs, or focus-safe controlled inputs.
Steps
- Keep input values in local variables and avoid re-rendering on every keystroke.
- On submit, update local state and call
handle.update(). - For controlled inputs, store a
DomRef, callhandle.updateSync(), then restore focus/selection. - Prefer splitting inputs into their own components if a sibling preview must update live.
Arguments
- submitOn - submit trigger (
submitorblur, defaults tosubmit)
Related skills
More from itsjavi/vani
vani-spa-setup
Create a minimal Vani SPA root with explicit updates
8vani-jsx-setup
Configure and use JSX with Vani while keeping runtime behavior explicit
8vani-scheduling
Schedule explicit updates with microtasks and transitions
8vani-spa-app
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples.
8vani-ssr-hydration
Implement SSR, hydration, and selective activation with Vani
8vani-async-client-only
Use async components, fallbacks, and client-only islands
8