npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@schedkit/react

v0.1.2

Published

React embed components for SchedKit booking pages

Readme

@schedkit/react

npm version license bundle size

React embed components for SchedKit booking pages. Drop a scheduling form into any React app in one line — inline, popup, or floating widget.


Install

npm install @schedkit/react
# or
yarn add @schedkit/react
# or
pnpm add @schedkit/react

React 17+ required. No other runtime dependencies.


Usage

Inline embed

Renders the booking form directly in your page.

import { SchedKitEmbed } from '@schedkit/react';

export default function BookingPage() {
  return (
    <SchedKitEmbed
      user="jason"
      event="30min"
      height={800}
    />
  );
}

Popup modal

Renders a button. Clicking it opens the booking form in a centered overlay.

import { SchedKitEmbed } from '@schedkit/react';

export default function Hero() {
  return (
    <SchedKitEmbed
      user="jason"
      event="30min"
      mode="popup"
      label="Schedule a call"
      onBooked={(data) => console.log('Booked!', data)}
    />
  );
}

Floating widget

Sticky button fixed to the corner of the page — works anywhere, no layout changes needed.

import { SchedKitEmbed } from '@schedkit/react';

export default function App() {
  return (
    <>
      {/* your app */}
      <SchedKitEmbed
        user="jason"
        event="30min"
        mode="widget"
        label="Book now"
        corner="bottom-right"
      />
    </>
  );
}

Programmatic control

Use ref to open/close programmatically, or useSchedKit to manage state yourself.

import { useRef } from 'react';
import { SchedKitEmbed, useSchedKit } from '@schedkit/react';
import type { SchedKitHandle } from '@schedkit/react';

// Via ref
function MyComponent() {
  const ref = useRef<SchedKitHandle>(null);
  return (
    <>
      <button onClick={() => ref.current?.open()}>Open booking</button>
      <SchedKitEmbed ref={ref} user="jason" event="30min" mode="popup" />
    </>
  );
}

// Via hook
function MyComponent2() {
  const { isOpen, open, close } = useSchedKit();
  return (
    <>
      <button onClick={open}>Book a meeting</button>
      {isOpen && (
        <SchedKitEmbed
          user="jason"
          event="30min"
          mode="popup"
          onClose={close}
          onBooked={(data) => { console.log(data); close(); }}
        />
      )}
    </>
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | user | string | — | Required. SchedKit username | | event | string | — | Required. Event slug | | mode | "inline" \| "popup" \| "widget" | "inline" | Embed mode | | height | number \| string | 800 | Iframe height (inline only) | | width | number \| string | "100%" | Iframe width (inline only) | | borderRadius | number | 12 | Border radius in px (inline only) | | label | string | "Book a meeting" | Button label (popup/widget) | | buttonStyle | CSSProperties | — | Override button styles | | corner | "bottom-right" \| "bottom-left" | "bottom-right" | Widget corner position | | prefillName | string | — | Pre-fill attendee name | | prefillEmail | string | — | Pre-fill attendee email | | timezone | string | — | Lock timezone (e.g. "America/Chicago") | | onOpen | () => void | — | Fires when overlay opens | | onClose | () => void | — | Fires when overlay closes | | onBooked | (data: SchedKitBookedData) => void | — | Fires when booking is confirmed | | className | string | — | Class on the iframe/button (inline/popup) | | style | CSSProperties | — | Style on the iframe (inline) | | branding | boolean | true | Show SchedKit footer. Set false on paid plans to hide it. |

SchedKitBookedData

interface SchedKitBookedData {
  uid: string;
  start_time: string;              // ISO 8601
  attendee_name: string;
  attendee_email: string;
  attendee_timezone: string;
  status: 'confirmed' | 'pending'; // 'pending' when host confirmation is required
  requires_confirmation: boolean;
}

SchedKitHandle (ref)

interface SchedKitHandle {
  open: () => void;
  close: () => void;
}

useSchedKit hook

const { isOpen, open, close, toggle } = useSchedKit();

Lightweight state hook for managing overlay visibility. Use when you want full control over the trigger UI.


Get access

SchedKit is currently in early access. Request an account →


Powered by SchedKit