Calendly Integration for React

4.4.0 · active · verified Sun Apr 19

react-calendly is a React component library designed to simplify the integration of Calendly scheduling pages into React applications. It provides high-level components like InlineWidget, PopupWidget, and PopupButton for embedding various Calendly layouts, as well as the useCalendlyEventListener hook for programmatic interaction with Calendly events within the iframe. The library is actively maintained, with its current stable version being 4.4.0. Releases occur frequently, typically addressing bug fixes and introducing new prefill options or minor feature enhancements. Key differentiators include its abstraction over raw Calendly embed scripts, direct support for React's component lifecycle and hooks, and built-in handling for common embedding challenges like loading states and event listening. It relies on React's Portal feature for modal rendering, requiring explicit rootElement configuration for popup widgets.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart embeds an InlineWidget for a Calendly scheduling page, demonstrating basic usage within a React component. Make sure to replace the placeholder URL with your actual Calendly link.

import React from 'react';
import { InlineWidget } from 'react-calendly';

const App = () => {
  return (
    <div className="App" style={{ minHeight: '800px', padding: '20px' }}>
      <h1>Schedule a Meeting</h1>
      <p>Please use the Calendly widget below to find a convenient time for us to connect.</p>
      <InlineWidget url="https://calendly.com/your_username/30min" styles={{ height: '600px' }} />
      <p>We look forward to speaking with you!</p>
    </div>
  );
};

export default App;

view raw JSON →