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