
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@exmg/exm-form
Advanced tools
<exm-button> The Exmg Form enhances form design by offering a more intuitive layout visualization, streamlining the user experience with several key features. These include:
npm install @exmg/exm-form
<exm-form class="has-aside" @dialog-submit="${doFormAction}">
<div slot="toolbar" class="toolbar"><div class="title">Create contact</div></div>
<form>
<div class="row">
<md-filled-text-field name="firstname" dialogFocus label="First Name" required></md-filled-text-field>
<md-filled-text-field name="lastname" label="Last Name" required></md-filled-text-field>
</div>
<div class="row">
<md-filled-text-field name="company" label="Company"></md-filled-text-field>
<md-filled-text-field name="amount" label="Amount" type="number" min="0" max="10"></md-filled-text-field>
</div>
<md-filled-text-field
name="email"
label="Email"
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$"
required
></md-filled-text-field>
<md-filled-text-field name="phone" label="Phone" required></md-filled-text-field>
</form>
<div slot="aside">
Ex Machina will send notices about the Data <a href="#">Processing Terms</a> and EU General Data Protection
Regulation to your primary contact. If your organization has a data protection officer or an EU representative, add
their contact information.
</div>
</exm-form>
async function doFormAction(e: CustomEvent<unknown>) {
const formDialog = e.target as ExmForm;
try {
formDialog.submitting = true;
// Do server call
// Show success message
} catch (error) {
console.error(error instanceof Error ? error.message : 'Unknown error');
} finally {
formDialog.submitting = false;
}
}
| Name | Type | Default | Description |
|---|---|---|---|
submitBtn | string | Save | Submit button copy |
cancelBtn | string | Cancel | Cancel button copy |
submitting | boolean | false | Indicated form submit in progress and disables the button |
hasAsideContent | boolean | false | Indicated if form has a side help section |
For other options see the m3 docs:
FAQs
Form element
The npm package @exmg/exm-form receives a total of 404 weekly downloads. As such, @exmg/exm-form popularity was classified as not popular.
We found that @exmg/exm-form demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.