Google Keep app inspired time picker for react :clock4:
Google Keep app inspired time picker for react :clock4:
React Timekeeper
Time picker based on the style of the
Android Google Keep
app.Features
$ yarn add react-timekeeper
# or via npm
$ npm install --save react-timekeeperVersion 2+ of timekeeper requires react hooks (v16.8). If you're using an older version of react, install timekeeper v1 via
$ npm install --save react-timekeeper@^1.0.0import React, {useState} from 'react';
import TimeKeeper from 'react-timekeeper';
function YourComponent(){
const [time, setTime] = useState('12:34pm')
return (
)
}All styles are inlined via emotion so no css imports are required.
For full api and examples, see API docs and examples
nvm use v12.16.0 (or anything >12+)yarn installyarn add -P react react-domnpm run docs:devlocalhost:3002Before submitting a PR, ensure that:
npm run testsnpm run docs:buildnpm run libOther useful commands:
npm version NEW_VERSION, commit and push - CI should publish to npm automaticallyNo open issues yet, or sync has not completed.