Magoo Component UI logo Magoo Component UI
← Catalog

Data Request Form

data-request-form molecule experimental

A GDPR/DSAR form for a person to request access to, deletion, export, or correction of their data.

Also in: Forms

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
DeletionOnly

Props

NameTypeReq
request_types array ✓
placeholder string

Related components

How to use

behavior.js intercepts the form submit, prevents the default navigation, and dispatches a bubbling "dsar:submit" CustomEvent with detail { type, email } read from the request-type select and the email input. The host app listens and does the real work (open a ticket, call an API, send mail). The portable self-init reads no props object and there is no data-* config. init returns a cleanup that removes the submit listener.

Use cases

form WCAG AA SEO 25 dir: both ai-generated