Zum Hauptinhalt springen
VelinStyle v1.2.0
⌂ Startseite
  1. Erste Schritte
  2. Komponenten
  3. Sicheres Feld

Sicheres Feld 1.2.0

Optionales clientseitiges Encoding für Formularfelder über <velin-secure-field> — a transport helper only. TLS and server-side crypto remain required in production. English: Sicheres Feld

Reifegrad: Dokumentiert als stabil in VelinStyle 1.2.0. Design Intelligence (Plan / Review / Agent-Meta) ist separat und Beta / Foundation wo vermerkt.

Wann verwenden

Wann nicht

Beispiel

<velin-secure-field type="email" name="contact" label="Email" autocomplete="email"></velin-secure-field>

<script type="module">
  import '@birdapi/velinstyle/secure';
</script>

Not in the default IIFE bundle — import the ./secure Package-Export, um das Hauptbundle klein zu halten. Standard mode ist aes-gcm when Web Crypto is available; otherwise the payload falls back to base64 encoding.

Attribute

AttributStandardHinweise
typesanitisierter Input-TypPassed to the inner <input>
namesecureIncluded in event detail.name
labelSecure fieldSichtbarer Labeltext
modeaes-gcmEncoding-Modus für die Payload
autocompleteoffForwarded to the input

CSS part: input.

Events

EventDetail
velin-secure-submit{ name, payload } — fired on input change

Barrierefreiheit

Contract-Status: pass.