components / interval-picker

interval-picker.

duration picker for "every n minutes" settings — quick presets in a roving-tabindex radiogroup plus a stepper for anything in between. always emits a plain minute count.

break reminder
min

nudging you every 50 minutes

installation
bunx @justin06lee/chrome@latest add interval-picker
props
nametypedefaultdescription
value *number-current interval, in minutes.
onChange *(minutes: number) => void-fired with the new interval in minutes, already clamped to min/max.
presetsnumber[][15, 25, 50, 90]quick-pick values in minutes.
minnumber1lower bound in minutes.
maxnumber240upper bound in minutes.
stepnumber5amount the steppers and arrow keys move by.
unitstring'min'unit shown after the custom value.
labelReactNode'interval'group caption; pass null to drop it.
disabledbooleanfalse
ariaLabelstring-accessible name for the preset group.
classNamestring-