Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
Components
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCountry SelectCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerEmail InputEmoji PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime PickerTimezone SelectTree Select
Forms
Address InputBooking WidgetCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text EditorSchema Builder
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverShare DialogSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSetup ChecklistSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadar chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselCSV ViewerDOCX EditorDOCX ViewerExcel ViewerFile SystemImage compareImage CropperImage GalleryImage LightboxLocation MapPDF ViewerPowerPoint ViewerQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadChat WidgetConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Background PatternGravity LettersMarqueeTerminalText AnimateText Rotate
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Marketing Sections
App Download SectionBlog Cards SectionCTA SectionFAQ SectionFeature GridFeature ShowcaseHero SectionIntegrations SectionLogo CloudMarketing FooterMarketing HeaderMarketing SectionNewsletter SectionPricing SectionStats SectionSteps SectionTeam SectionTestimonials SectionTimeline SectionVideo Section
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAPI Keys PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowOrder History PagePost Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
Templates
About PageAcademy PageAccessibility PageAffiliate PageAgency PageAI Product PageAppointment Booking PageBlog PageBlog Post PageBug Bounty PageCareers PageChangelog PageCommunity PageCompare PageContact PageCustomer Story PageCustomers PageDemo Booking PageDevelopers PageDocs Home PageDownload PageEnterprise PageEvents PageExperts PageFAQ PageFeature PageGlossary PageHelp Article PageHelp Center PageHome Services PageImpact PageIntegration Detail PageIntegrations PageJob Detail PageLanding PageLaunch PageLegal PageManifesto PagePortfolio PagePress PageProduct Tour PagePromo PageReal Estate PageReferral PageResearch Report PageRestaurant PageRoadmap PageROI Calculator PageSecurity PageSolutions PageStartups PageStatus PageStorefront PageSwitch PageTemplate Gallery PageTravel PageWaitlist PageYear in Review Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryTheme

Inputs

Cron Picker

Inputs

Cron Picker React component for Tailwind CSS v4

Country SelectCurrency Input
Live props
Content
defaultValue
showSummary
showExpression
showNextRuns5
label
description
Behavior
allowCustom
timeZone
hourCycle
name
locale
Layout
weekStartsOn-1
layout
State
error
required
invalid
disabled
readOnly
Appearance
size
variant
radius
tone
color
Code
import { CronPicker } from "@/components/ui/cron-picker"

<CronPicker />
  1. Home
  2. Components
  3. Inputs
  4. Cron Picker
Pro

Cron Picker React component for Tailwind CSS v4

v1.0.0·Added in 1.0.0

A React cron expression builder: frequency tabs, weekday and day chips, a time, a sentence that reads the schedule back and the next runs.

Pick how often with the frequency tabs (arrow keys move between them; on a phone they show short names). Every few minutes and every few hours are a select in a sentence (a bottom sheet on phones), hourly adds the minute in a number field (arrows step, Shift steps by 5). Weekly shows seven day chips and monthly a 7-column grid of days 1 to 31: tap or press Space to toggle a chip, arrows move between chips, and each chip pops in on a quick spring. The time opens columns on desktop and a wheel sheet on phones. Every change rewrites the expression at once: the sentence under the fields says it back ("Every weekday at 9:00 AM") and screen readers hear it half a second after you stop, the expression chip copies with one click, and the next runs slide into place with the date, the time and how far away they are. Custom takes a raw expression, validated as you type with a message per field ("Hour must be between 0 and 23"), or five small boxes with By field; Enter never submits the form around it. Weekly or monthly with nothing picked says what is missing. Read-only keeps the sentence and the expression; reduced motion turns the slides into fades.

Cron Picker is a Pro React component in the React input components category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add cron-picker, together with Badge, Copy Button, Field, Input, Number Input and 11 more and the npm packages motion and lucide-react.

Add to a project

Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup

npx wingo-ui@latest add cron-picker

Cron Picker is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans

Usage

Import CronPicker from @/components/ui/cron-picker.

import { useState } from "react"
import { CronPicker, describeCron } from "@/components/ui/cron-picker"

export function ReportSchedule() {
  const [cron, setCron] = useState("0 9 * * 1-5")
  return (
    <div className="flex flex-col gap-3">
      <CronPicker
        label="Send the report"
        value={cron}
        onValueChange={setCron}
        locale="en-US"
        timeZone="America/New_York"
        name="schedule"
      />
      <p className="text-sm text-muted-foreground">{describeCron(cron, { locale: "en-US" })}</p>
    </div>
  )
}

Props

  • value
    string

    The controlled cron expression: 5 fields (minute hour day month weekday) with *, lists, ranges, steps, JAN / MON names and @daily-style macros. It is "" while a weekly or monthly tab has nothing picked.

  • defaultValuedefault "0 9 * * 1-5"
    string

    The uncontrolled start. The tab it opens on comes from detectFrequency; anything the tabs cannot express (or an invalid expression) opens Custom. Try "*/15 9-17 * * 1-5" or "0 25 * * *".

  • onValueChange
    (value: string) => void

    Every change from the tabs, chips, fields or the custom input, with the new expression (invalid custom text too, so a form can block saving).

  • frequenciesdefault "["minutes", "hourly", "daily", "weekly", "monthly", "custom"]"
    CronFrequency[] ("minutes" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "custom")

    The tabs, in order. Add "yearly" for dates like 1 January; custom only shows while allowCustom is on.

  • showSummarydefault true
    boolean

    The sentence that says the schedule back, in Romanian or English, with correct plurals.

  • showExpressiondefault true
    boolean

    The expression as a mono chip with a copy button (and the time zone badge when timeZone is set).

  • showNextRunsdefault 5
    number

    How many next runs to list, with the date, the time and a relative label ("tomorrow"). 0 hides the list.

  • allowCustomdefault true
    boolean

    The Custom tab: a raw expression input or five labelled boxes, validated as you type.

  • minuteIntervalsdefault "[5, 10, 15, 30]"
    number[]

    The choices for every N minutes. An incoming step outside the list (*/7) is added so it still shows.

  • hourIntervalsdefault "[1, 2, 3, 4, 6, 12]"
    number[]

    The choices for every N hours.

  • weekStartsOndefault -1
    Weekday | -1 (0 Sunday to 6 Saturday)

    The weekday chip order. -1 follows the locale: Monday first in ro-RO, Sunday in en-US.

  • timeZonedefault ""
    string

    An IANA zone ("America/New_York") the expression is read in: the next runs are computed and shown in it, and a badge names it. Empty uses the device's zone.

  • hourCycledefault "auto"
    "auto" | "h12" | "h23"

    12 or 24 hours for the time field, the sentence and the next runs. auto follows the locale (24h in ro-RO).

  • layoutdefault "stacked"
    "stacked" | "split"

    split puts the fields on the left and the summary and next runs on the right once the picker is 672px wide (a container query); stacked always on phones.

  • now
    Date | number

    The moment the next runs count from. Default the current minute (useNow), with placeholder rows during server rendering.

  • labeldefault ""
    ReactNode

    The field label above the picker. Clicking it focuses the frequency tabs.

  • descriptiondefault ""
    ReactNode

    Helper text under the picker, replaced by the error while one shows.

  • errordefault ""
    ReactNode

    An error from your form under the picker; it also marks the field invalid. Custom expression errors show on the input itself.

  • requireddefault false
    boolean

    The required mark after the label and aria-required.

  • invaliddefault false
    boolean

    The invalid state without a message (aria-invalid on the group).

  • disableddefault false
    boolean

    Dims and blocks every control inside.

  • readOnlydefault false
    boolean

    Shows only the sentence and the expression (with copy), for a job list or a details page.

  • sizedefault "md"
    "sm" | "md" | "lg"

    The tabs 32 / 40 / 48px, the chips 32 / 36 / 40px (44px on touch), the inline controls sm, sm and md, and the sentence text.

  • variantdefault "soft"
    "soft" | "outline" | "ghost"

    The box of the inline select, number, time and custom inputs.

  • radiusdefault "md"
    "none" | "sm" | "md" | "lg" | "full"

    Corners of the tabs, the inputs and the chips (full makes round day chips).

  • tonedefault "neutral"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    The selected chips, the frequency thumb and the summary icon.

  • colordefault ""
    string

    Any CSS color for the selected chips and the thumb; replaces the tone.

  • namedefault ""
    string

    Adds a hidden input with the expression (empty while invalid), for plain form posts. The demo prints it under the picker.

  • localedefault ""
    string

    Sentence language (ro and en built in, others through labels), weekday and month names, dates and times. Empty uses the UIProvider locale, then the browser's. The demo defaults to en-US.

  • labels
    Partial<CronPickerLabels>

    Every string: frequencies and frequenciesShort, the sentence-row words (every, minutesUnit(n), atMinute, atTime), chip group names, custom tab strings, copy / copied, nextRuns, noRuns, invalid, pickDay, pickMonth, useFiveFields, outOfRange(field, min, max), badField(field), unknownTimeZone, increment / decrement (the minute steppers), timePicker (the time sheet: Done, Hours...), weekday and month names, and the sentence builders. A ro locale picks CRON_PICKER_LABELS_RO on its own.

  • fieldProps
    Partial<FieldProps>

    More for the field wrapper: optional, optionalLabel, labelAction, hideLabel, className.

  • id
    string

    The group's id; the label points at it.

  • classNames
    Partial<Record<"field" | "label" | "description" | "error" | "frequency" | "fields" | "interval" | "minute" | "weekdays" | "monthDays" | "months" | "time" | "custom" | "summary" | "expression" | "next" | "run", string>>

    Extra classes for the inner parts.

  • className
    string

    Classes for the root (the field wrapper when a label, description or error is set).

Parts

  • parseCron

    function

    The five fields ({ minute, hour, dayOfMonth, month, dayOfWeek }) with macros expanded, or null for anything that is not 5-field cron (6 or 7 fields, @reboot). Signature: (expr: string) => CronParts | null.

  • isValidCron

    function

    True for a valid 5-field expression. Signature: (expr: string) => boolean.

  • validateCron

    function

    Why an expression is invalid: the field count, a value out of range (with the field and bounds) or a syntax error in one field. Signature: (expr: string) => { valid: true; parts: CronParts } | { valid: false; error: CronError }.

  • cronErrorMessage

    function

    Turns a validateCron error into a sentence from the labels: useFiveFields, outOfRange(field, min, max), badField(field) or invalid. Pass DEFAULT_CRON_PICKER_LABELS for English. Signature: (error: CronError, labels: Pick<CronPickerLabels, "invalid" | "useFiveFields" | "outOfRange" | "badField">) => string.

  • describeCron

    function

    The sentence: "Every weekday at 9:00 AM", "Mondays, Wednesdays and Fridays at 8:30 AM", "On the 1st and 15th at 8:00 AM". Signature: (expr: string, { locale?, labels?, hourCycle? }) => string.

  • getNextRuns

    function

    The next runs after from, minute-accurate, up to 4 years ahead: skips 31 February, follows cron's day-of-month OR day-of-week rule when both are set, and reads the expression in timeZone. Signature: (expr: string, { from?, count = 5, timeZone? }) => Date[].

  • detectFrequency

    function

    The tab an expression opens on; "custom" for invalid ones and for what the tabs cannot express. Signature: (expr: string) => CronFrequency.

  • DEFAULT_CRON_PICKER_LABELS

    constant

    The English default labels, to spread and override. Type: CronPickerLabels.

  • CRON_PICKER_LABELS_RO

    constant

    The ready Romanian set (sentences with plurals and weekday articles: "lunea", "20 de minute"). Type: CronPickerLabels.

Examples

Every 15 minutes

A supplier invoice sync on */15, with the next three runs counted from 4:40 PM.

Monthly on the 1st and 15th

Invoice reminders at 8:00 AM: tap day chips, the sentence and the expression follow.

Custom expression with validation

An hour of 25 opens the custom tab with a field error; switch to By field to edit each part.

Split layout in a settings panel

Fields on the left, summary and next runs on the right from 672px, with a yearly tab and a time zone.

Romanian

Built-in Romanian sentences, Monday-first chips and a 24-hour clock from the ro-RO locale.

Read-only in a job list

readOnly keeps only the sentence and the expression, compact enough for a row.

Dependencies

motionlucide-reactbadgecopy-buttonfieldinputnumber-inputsegmented-controlselecttime-pickertoggle-groupuse-controllable-stateuse-localedate-utilsrelative-timemotiontonesui-config

Files

  • components/ui/cron-picker.tsx

FAQ

Is the React Cron Picker component free?

The preview, props and docs are free; copying the source needs a Pro plan. See plans.

How do I install Cron Picker?

Run npx wingo-ui@latest add cron-picker. It also adds the Wingo UI items it builds on (Badge, Copy Button, Field, Input, Number Input and 11 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/cron-picker.

How does Cron Picker behave on phones?

Pick how often with the frequency tabs (arrow keys move between them; on a phone they show short names). Every few minutes and every few hours are a select in a sentence (a bottom sheet on phones), hourly adds the minute in a number field (arrows step, Shift steps by 5).

See also

Time PickerToggle GroupSegmented ControlDate PickerScheduler

Used in

Automation Builder Page

More React input components

Currency InputDate Time PickerEmail InputEmoji PickerFile UploadFilter Builder
All 40 React input components

Articles using this component

  • React Cron Generator: Schedules Without Writing Cron

    Component guides · Oct 19, 2026 · 9 min read

PreviousCountry SelectNext Currency Input

Automated report: weekly sales

PDF sent to the sales team

Active
Days of the week
At
Format hh:mm AM/PM

Schedule: Every weekday at 9:00 AM

0 9 * * 1-5

Next runs

  1. Friday, 09/25/2026, 9:00 AMtomorrow
  2. Monday, 09/28/2026, 9:00 AMin 4 days
  3. Tuesday, 09/29/2026, 9:00 AMin 5 days
  4. Wednesday, 09/30/2026, 9:00 AMin 6 days
  5. Thursday, 10/01/2026, 9:00 AMin 1 wk.

value=0 9 * * 1-5

Pick a frequency, tap the days, and the sentence and next runs follow.