Installation
Pick one. Both give you the same component.
npm install resource-schedulerThen import the stylesheet once, anywhere in your app:
import "resource-scheduler/dist/resource-scheduler.css";- React 18 or 19 (
reactandreact-domare peer dependencies). - No Tailwind setup needed. The stylesheet is precompiled.
- Use npm if you want updates with
npm update.
npx shadcn@latest add mdobaid311/resource-scheduler/resource-schedulerimport { ResourceScheduler } from "@/components/resource-scheduler";- Needs Tailwind v4, which is what shadcn sets up by default.
- Copies the source to
components/resource-scheduler/and installs its dependencies. - Adds the
--rs-*tokens and a few utilities to your CSS. Your own theme variables andcomponents/uiare not touched. - Skip the stylesheet import: the styles are already in your CSS.
- Use the registry if you want to edit the source. Preview with
--dry-runornpx shadcn@latest view mdobaid311/resource-scheduler/resource-scheduler, and pin a release with...#<tag>.
Check it works
Section titled “Check it works”import { ResourceScheduler } from "resource-scheduler";
export function Board() { return ( <div style={{ height: 480 }}> <ResourceScheduler resources={[{ id: "1", name: "Ann", events: [] }]} /> </div> );}The component fills its parent, so give the parent a height.
Next.js
Section titled “Next.js”The bundle starts with "use client", so you can import it from a server file. See Next.js and SSR.