TidalUI

Schedule builder preview

Build a daily, weekly, or monthly schedule with an exact five-field cron value.

pro · Forms · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/schedule-builder

Import components/ui/tidal.css, components/ui/schedule-builder.css. Wrap installed components in tidal-scope.

Preview

Schedule builder component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/schedule-builder.css";
import{TidalScheduleBuilder}from"./components/ui/schedule-builder";
export default(p:Parameters<typeof TidalScheduleBuilder>[0])=><div className="tidal-scope"><TidalScheduleBuilder {...p}/></div>;

API and props

TidalScheduleBuilder.onTimezoneChange (required)
(value: string, event: ChangeEvent<HTMLSelectElement>) => void

Callback invoked when the timezone change interaction is proposed.

TidalScheduleBuilder.onValueChange (required)
(value: TidalScheduleValue, source: "frequency" | "time" | "weekday" | "month-day", event: ChangeEvent<HTMLInputElement>) => void

Callback invoked when the value change interaction is proposed.

TidalScheduleBuilder.timezone (required)
string

Required timezone value accepted by this exported component.

TidalScheduleBuilder.timezones (required)
ReadonlyArray<TidalScheduleTimezone>

Required timezones value accepted by this exported component.

TidalScheduleBuilder.title (required)
ReactNode

Required title value accepted by this exported component.

TidalScheduleBuilder.value (required)
TidalScheduleValue

Required value value accepted by this exported component.

TidalScheduleBuilder.busy
boolean | undefined

Optional busy value accepted by this exported component.

TidalScheduleBuilder.description
ReactNode

Optional description value accepted by this exported component.

TidalScheduleBuilder.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalScheduleBuilder.error
ReactNode

Optional error value accepted by this exported component.

TidalScheduleBuilder.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalScheduleBuilder.labels
Partial<{ frequency: string; daily: string; weekly: string; monthly: string; time: string; weekdays: string; monthDay: string; timezone: string; expression: string; preview: string; previewEmpty: string; invalidConfiguration: string; invalidTime: string; chooseWeekday: string; invalidMonthDay: string; }> | undefined

Optional labels value accepted by this exported component.

TidalScheduleBuilder.monthDayInputProps
MonthInputProps | undefined

Optional month day input props value accepted by this exported component.

TidalScheduleBuilder.monthDayRef
Ref<HTMLInputElement> | undefined

Optional month day ref value accepted by this exported component.

TidalScheduleBuilder.name
string | undefined

Optional name value accepted by this exported component.

TidalScheduleBuilder.nextRuns
ReadonlyArray<TidalSchedulePreviewItem> | undefined

Optional next runs value accepted by this exported component.

TidalScheduleBuilder.onSubmit
((event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the submit interaction is proposed.

TidalScheduleBuilder.readOnly
boolean | undefined

Optional read only value accepted by this exported component.

TidalScheduleBuilder.submitLabel
ReactNode

Optional submit label value accepted by this exported component.

TidalScheduleBuilder.submitProps
SubmitProps | undefined

Optional submit props value accepted by this exported component.

TidalScheduleBuilder.submitRef
Ref<HTMLButtonElement> | undefined

Optional submit ref value accepted by this exported component.

TidalScheduleBuilder.timeInputProps
TimeInputProps | undefined

Optional time input props value accepted by this exported component.

TidalScheduleBuilder.timeRef
Ref<HTMLInputElement> | undefined

Optional time ref value accepted by this exported component.

TidalScheduleBuilder.timezoneName
string | undefined

Optional timezone name value accepted by this exported component.

TidalScheduleBuilder.timezoneProps
SelectProps | undefined

Optional timezone props value accepted by this exported component.

TidalScheduleBuilder.timezoneRef
Ref<HTMLSelectElement> | undefined

Optional timezone ref value accepted by this exported component.

TidalScheduleBuilder.weekdayLabels
Partial<Record<TidalScheduleWeekday, string>> | undefined

Optional weekday labels value accepted by this exported component.

TidalScheduleBuilder.weekdayRef
((day: TidalScheduleWeekday) => Ref<HTMLInputElement> | undefined) | undefined

Optional weekday ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas