Skip to Content
Kokonut UI

IN-14InputsNew, October 22, 2026

Slot Picker

Book a meeting on a day rail. Drag a meeting into a free gap; it hops over existing bookings, resizes in place and shows the host's local time.

Install with
lucide-react, motion

PRONeed the whole week? Calendar Schedule is in Kokonut UI Pro

Installation

Slot Picker is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/slot-picker.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/slot-picker

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/slot-picker.tsx.

npm install lucide-react motion

Usage

import SlotPicker from "@/components/kokonutui/slot-picker";

export default function Example() {
  return <SlotPicker />;
}

Props

host
{ name: string; title?: string; city?: string; offset?: number }Default { name: "Lena Ortiz", title: "Product walkthrou…

Who you're booking. offset is their clock minus yours, in minutes.

days
SlotDay[]Default demo data
durations
number[]Default [30, 60, 90]

Lengths offered, in minutes.

timezone
stringDefault "Eastern Time, New York"

The guest's time zone, shown under the rail.

onBook
(slot: { date: string; start: number; minutes: number }) => void
className
string

Extra classes for the root element.

SlotDay

daterequired
string

YYYY-MM-DD

openrequired
Span

Hours you can be booked, in minutes from midnight, in the guest's time.

busyrequired
Span[]

Meetings already in the calendar.

Span

Minutes from midnight.

type Span = [number, number];

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.