Package Exports
- react-duration-control
- react-duration-control/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-duration-control) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-duration-control
A time duration input component that allows the user to define a duration in days, hours, minutes, seconds and milliseconds.
Install
$ npm install react-duration-control
Usage
import DurationControl from "react-duration-control";
import "react-duration-control/dist/react-duration-control.css";
const [millis, setMillis] = useState(0);
<DurationControl
pattern={"Days {dd} Hours {hh} Minutes {mm} Seconds {ss} Milliseconds {ff}"}
value={millis}
onChange={setMillis}
/>