Availability Scheduler
Availability Scheduler: Weekly availability editor where each day springs between available and unavailable, time ranges add and remove with blur-slide motion, times pick from a scrollable dropdown, and a copy menu clones hours to other days. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Availability Scheduler
npx motion-ui-skill add availability-schedulerComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactmotionreactreact-domtailwind-merge
Source files
components/motion/availability-scheduler/index.tsxcomponents/motion/availability-scheduler/copy-menu.tsxcomponents/motion/availability-scheduler/day-row.tsxcomponents/motion/availability-scheduler/icon-button.tsxcomponents/motion/availability-scheduler/time-select.tsxcomponents/motion/availability-scheduler/types.tscomponents/motion/checkbox.tsxcomponents/motion/popover-morph.tsxcomponents/motion/popover-position.tscomponents/motion/select.tsxcomponents/motion/switch.tsxcomponents/motion/tooltip.tsxlib/ease.tslib/hooks/use-dismiss.tslib/hooks/use-hover-gesture.tslib/hooks/use-tap-gesture.tslib/portal.tsxlib/touch.tslib/utils.ts
Availability Scheduler
Weekly availability editor where each day springs between available and unavailable, time ranges add and remove with blur-slide motion, times pick from a scrollable dropdown, and a copy menu clones hours to other days.
Install
npx motion-ui-skill add availability-scheduler
Dependencies
clsxlucide-reactmotionreactreact-domtailwind-merge
Usage
"use client";
import { AvailabilityScheduler } from "@/components/motion/availability-scheduler";
export function AvailabilitySchedulerPreview() {
return (
<div className="flex w-full justify-center">
<AvailabilityScheduler />
</div>
);
}
API Reference
AvailabilityScheduler
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
value |
WeekAvailability |
— | No | — |
defaultValue |
WeekAvailability |
— | No | — |
onChange |
((value: WeekAvailability) => void) |
— | No | — |
step |
number |
30 |
No | Minutes between selectable times. Default 30. |
className |
string |
— | No | — |