@m3e/react

April 26, 2026 · View on GitHub

The @m3e/react package provides idiomatic, typed React bindings for the @m3e/web component suite, exposing its properties, attributes, and native DOM events through a familiar React interface with full ref forwarding and client‑only compatibility.

Note: The React bindings are client‑only. In Next.js, you must use them inside a "use client" boundary.

🧪 Example

The following example demonstrates how to use the M3eButton React binding from @m3e/react/button.

"use client";

import { M3eButton } from "@m3e/react/button";

export default function ClickExample() {
  return <M3eButton onClick={() => console.log("Button clicked!")}>Click me</M3eButton>;
}

🤝 Contributing

See the root monorepo CONTRIBUTING.md for guidelines on contributing to this package.

📄 License

This package is licensed under the MIT License.