Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Components
  3. Misc
  4. Persist

Persist 1.2.2

Wrap a form (or field group) in <velin-persist> to debounce-save named inputs to localStorage (default) or sessionStorage. Password and file inputs are never stored. Supports WCAG 2.2 3.3.7 Redundant Entry; listed in core/a11y/component-contracts.json (framework audit: pass). Deutsch: Persist De

Maturity: Documented as stable in VelinStyle 1.2.0. Design Intelligence (plan / review / agent meta) is separate and beta / foundation where noted.

When to use

When not

Basic

<velin-persist key="contact-draft">
  <form>…</form>
</velin-persist>

Attributes

AttributeDefaultNotes
keydefaultStorage suffix (velin-persist-{key}); alphanumeric + _-
storagelocalsession for sessionStorage

JavaScript API

document.querySelector('velin-persist').clear();

Also clears on form submit and reset.

Events

Security

Never persist secrets: type="password" and type="file" are skipped. Max payload 64 KB per key. For PII in source, run npx velinstyle scan --only pii.

Accessibility