Parses 1h30, 90m, 1.5h, 1:30 and 2d 4h into one duration read back in words, catches 1.50 typed for 1 h 50 min, and asks whether 1:30 is h:mm or m:ss when the limits can't decide.
npx shadcn@latest add @bollard/duration-input
Loading the source for duration-input…
Registry Items
duration-input
Configuration
Name
duration-input
Type
UI
Description
Parses 1h30, 90m, 1.5h, 1:30 and 2d 4h into one duration read back in words, catches 1.50 typed for 1 h 50 min, and asks whether 1:30 is h:mm or m:ss when the limits can't decide.
Files · 2
Dependencies
npm packages
lucide-react
Registry Items
duration-input
Configuration
Name
duration-input
Type
UI
Description
Parses 1h30, 90m, 1.5h, 1:30 and 2d 4h into one duration read back in words, catches 1.50 typed for 1 h 50 min, and asks whether 1:30 is h:mm or m:ss when the limits can't decide.