
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A React time picker with draggable scrubber and slider - minimal clicks, maximum control
A React time picker with draggable scrubber and slider — minimal clicks, maximum control.
npm install scrubtime
# or
yarn add scrubtime
# or
pnpm add scrubtime
import { useState } from 'react';
import { TimePicker } from 'scrubtime';
import 'scrubtime/styles.css'; // Import default styles
function App() {
const [time, setTime] = useState('14:30');
return (
<TimePicker
value={time}
onChange={setTime}
label="Select time"
/>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | required | Time in "H:mm" or "HH:mm" format |
onChange | (value: string) => void | required | Called when time changes |
label | string | - | Optional label above picker |
className | string | - | Custom class for root element |
disabled | boolean | false | Disable the picker |
sliderStep | number | 15 | Slider step in minutes |
dragSensitivity | number | 3 | Pixels per unit when dragging |
divisions | number | 4 | Number of equal parts to divide the 24h range (4 = labels at 0, 6, 12, 18, 24) |
sliderStep)Override these variables to customize the appearance:
:root {
--scrubtime-bg: #27272a;
--scrubtime-bg-hover: #3f3f46;
--scrubtime-border: #3f3f46;
--scrubtime-text: #ffffff;
--scrubtime-text-muted: #71717a;
--scrubtime-value-bg: #3f3f46;
--scrubtime-slider-bg: #3f3f46;
--scrubtime-slider-thumb: #3b82f6;
--scrubtime-slider-thumb-border: #1e3a5f;
--scrubtime-radius: 0.75rem;
--scrubtime-radius-sm: 0.5rem;
--scrubtime-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
Don't import the CSS and style the classes yourself:
import { TimePicker } from 'scrubtime';
// Don't import styles.css
// Style these classes:
// .scrubtime
// .scrubtime-label
// .scrubtime-container
// .scrubtime-display
// .scrubtime-value
// .scrubtime-hours
// .scrubtime-minutes
// .scrubtime-separator
// .scrubtime-slider-container
// .scrubtime-slider
// .scrubtime-slider-labels
You can use Tailwind by passing a className and not importing the default styles:
<TimePicker
value={time}
onChange={setTime}
className="[&_.scrubtime-container]:bg-zinc-800 [&_.scrubtime-value]:bg-zinc-700"
/>
MIT © falkenhawk
FAQs
A React time picker with draggable scrubber and slider - minimal clicks, maximum control
We found that scrubtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.