Skip to main content
The EventDisplayButton is a React component that renders a button; when clicked, it opens a modal with an iframe showing your event URL (e.g. ticket or event page). Requires React 16.8+.

Basic example

Clicking the button opens a modal with the live event page.

CommonJS

Props

The modal is centered on desktop and full-screen on viewports ≤768px. The modal and iframe use an id derived from url for styling or scripting.

With custom classes

Live demo

Try it in your browser — click “Get Tickets” to open the event in a modal. To run the demo locally: cd examples/demo && npm install && npm run dev, then open http://localhost:5173.

Peer dependency