Availability Scheduler
Availability Scheduler exposes a week value and a change callback in selectable time steps.
Practical React example
Edit a weekly availability pattern before saving it to a scheduling service.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/motion/availability-scheduler/index.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, lucide-react, motion, react, react-dom, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Edit a weekly availability pattern before saving it to a scheduling service
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import { AvailabilityScheduler } from "@/components/motion/availability-scheduler";
export function AvailabilitySchedulerPreview() {
return (
<div className="flex w-full justify-center">
<AvailabilityScheduler />
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Store the weekly pattern separately from dated appointments. Define the user’s time zone and validate overlapping or invalid time ranges before saving.
Customization
- AvailabilitySchedulerProps.value
- Optional; WeekAvailability.
- AvailabilitySchedulerProps.defaultValue
- Optional; WeekAvailability.
- AvailabilitySchedulerProps.onChange
- Optional; (value: WeekAvailability) => void.
- AvailabilitySchedulerProps.step
- Optional; number. Minutes between selectable times. Default 30.
- AvailabilitySchedulerProps.className
- Optional; string.
- SwitchProps.checked
- Required; boolean.
- SwitchProps.onCheckedChange
- Required; (checked: boolean) => void.
- SwitchProps.disabled
- Optional; boolean.
- SwitchProps.label
- Optional; string.
- SwitchProps.ariaLabel
- Optional; string.
- SwitchProps.className
- Optional; string.
- TooltipProps.content
- Required; ReactNode.
- TooltipProps.children
- Required; ReactElement.
- TooltipProps.side
- Optional; Side.
Integration notes
- A weekly range does not resolve daylight-saving changes for a specific booking date.
- Test keyboard editing and explain whether an empty day means unavailable or not configured.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.