Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Components
  3. Forms & inputs
  4. Secure field

Secure field 1.2.2

Optional client-side encoding for form fields via <velin-secure-field> — a transport helper only. TLS and server-side crypto remain required in production. Deutsch: Sicheres Feld

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

Example

<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 to keep the main bundle small. Default mode is aes-gcm when Web Crypto is available; otherwise the payload falls back to base64 encoding.

Attributes

AttributeDefaultNotes
typesanitized input typePassed to the inner <input>
namesecureIncluded in event detail.name
labelSecure fieldVisible label text
modeaes-gcmEncoding mode for the payload
autocompleteoffForwarded to the input

CSS part: input.

Events

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

Accessibility

Contract status: pass.