<mds-input-field label="Email"> <mds-input name="email" type="email" placeholder="name@example.com"></mds-input></mds-input-field><mds-button label="Send" icon="mi/baseline/send" variant="primary"></mds-button>
<script type="module"> document.querySelector('mds-input').addEventListener('mdsInputChange', (event) => { console.log(event.detail.value); });</script>import { MdsButton, MdsInput, MdsInputField } from '@maggioli-design-system/magma-react';
export function Subscribe() { return ( <> <MdsInputField label="Email"> <MdsInput name="email" type="email" placeholder="name@example.com" onMdsInputChange={(event) => console.log(event.detail.value)} /> </MdsInputField> <MdsButton label="Send" icon="mi/baseline/send" variant="primary" /> </> );}import { Component } from '@angular/core';import { MdsButton, MdsInput, MdsInputField } from '@maggioli-design-system/magma-angular';
@Component({ selector: 'app-subscribe', imports: [MdsButton, MdsInput, MdsInputField], template: ` <mds-input-field label="Email"> <mds-input name="email" type="email" placeholder="name@example.com" (mdsInputChange)="onChange($event)" ></mds-input> </mds-input-field> <mds-button label="Send" icon="mi/baseline/send" variant="primary"></mds-button> `,})export class SubscribeComponent { onChange(event: CustomEvent) { console.log(event.detail.value); }}Design tokens design-tokens The design decisions as values: CSS custom properties, SCSS, JavaScript, JSON and DTCG, Figma variables, and the formats of iOS, Android and Flutter. Fits whenThe product has its own interface stack, or is not on the web. Styles styles The tokens as a Tailwind 4 theme and utilities, with the base styles, the fonts, dark mode, contrast and themes. Fits whenYou write your own markup and want it to look and behave like Magma. Web components magma svg-icons 114 components as custom elements: load them all, or import only the ones a page uses. Icons by name. Fits whenPlain HTML, server-rendered templates, a CMS, micro-frontends: any page in a browser. Framework wrappers magma-react magma-angular The same components as React components and Angular standalone components, with types, events and form bindings, and server rendering for React. Fits whenThe product is a React or an Angular app.
Read node_modules/@maggioli-design-system/magma/AGENTS.md and follow it to install Magma into this project.Read node_modules/@maggioli-design-system/magma-react/AGENTS.md and follow it to install Magma into this project.Read node_modules/@maggioli-design-system/magma-angular/AGENTS.md and follow it to install Magma into this project.