Web Components · Global
<mmm-form>
Form wrapper with client validation and submission orchestration.
What it is
A composable form root — every input it contains gets validation, error display, and submit lifecycle for free.
When to use
- Login, signup, contact, and other custom forms
Attributes
AttributeTypeDefaultDescription
data-actionstring—Submission endpoint.data-methodstringPOSTHTTP method.idstring—Unique element identifier.classstring—Custom CSS class list.hiddenbooleanfalseHide the element without removing it from the DOM.Examples
Login form
Inputs get validation hooks automatically.
<mmm-form data-action="/api/login">
<input name="email" type="email" required />
<input name="password" type="password" required />
<button type="submit">Sign in</button>
</mmm-form>