Snooze Picker

Menu for scheduling reminders, snoozing notifications, or deferring tasks with quick presets and custom date-time picker.

@drift-ui/snooze-pickerRegistry JSONOpen in v0

Keyboard

↑↓
Move through snooze presets
EnterSpace
Select a preset or open the custom picker
→
Open custom date and time picker
Escape
Close the picker
On this page

Installation

The CLI also installs the npm packages and registry items it builds on, and reads the style in your components.json to pick the Base UI or Radix build.

Usage

snooze-picker-usage.tsx
"use client"

import { useState } from "react"
import { SnoozePicker } from "@/components/ui/snooze-picker"

export function ReminderSnooze() {
  const [snoozeUntil, setSnoozeUntil] = useState<Date | null>(null)

  return (
    <SnoozePicker
      value={snoozeUntil}
      onValueChange={setSnoozeUntil}
      placeholder="Snooze reminder"
    />
  )
}

Examples

Quick presets

Relative presets like Later today, Tomorrow, This weekend, and Next week automatically adjust to the current time.

Custom presets and times

Pass custom preset configs with dynamic resolver functions and configure default preset target times.

Notification snooze button

Use size='icon' and variant='ghost' to create compact snooze actions for notifications, tasks, or emails.

Security alert review

Production database replica CPU high

API reference

SnoozePicker

A menu component for scheduling reminders, snoozing notifications, or deferring tasks with quick presets and an embedded custom date-time picker.

Prop
valueDate | nullControlled snooze date.
defaultValueDate | nullDefaultnullInitial value when uncontrolled.
onValueChange(date: Date | null) => voidCalled when the snooze date changes.
onSelect(date: Date, presetId?: string) => voidCalled when a preset or custom date is picked.
presetsSnoozePreset[]Default["later-today", "tomorrow", "this-weekend", "next-week"]List of preset identifiers or custom preset configs.
timesSnoozeTimesCustom target times for presets (morning, afternoon, evening, weekendDay, workweekDay).
timeZonestringIANA time zone name (e.g. 'America/New_York').
localestringDefault"en-US"BCP 47 language tag for date and time formatting.
hourCycle12 | 24Default2412-hour or 24-hour cycle for time formatting.
minDateEarliest date selectable in custom picker.
maxDateLatest date selectable in custom picker.
nowDatePinned reference date instead of current time.
placeholderstringDefault"Snooze"Trigger button label when no value is selected.
openbooleanControlled open state of the popover.
defaultOpenbooleanDefaultfalseInitial open state when uncontrolled.
onOpenChange(open: boolean) => voidCalled when the popover opens or closes.

Other props go to the <button>.

Source

components/ui/snooze-picker.tsx