Hidden

Hidden form field for storing data.

---
import Hidden from "@forms/hidden/Hidden.astro";
---

<Hidden name="user-id" value="12345" />
---
blocks:
  _component: building-blocks/forms/hidden
  name: user-id
  value: '12345'
---

Overview #

A hidden form field used to store additional data that isn’t shown to users. Commonly used to include metadata such as form source, page ID, or tracking information in submissions.

Properties #

name string | default: my_hidden

The name attribute for the hidden input field.

value string

The value to be stored in the hidden field.