react-world-time
World clock widget for React
Usage
npm install
gulp
Component API
<WorldTime>
component:
Property | Type | Default | Required | Description |
---|---|---|---|---|
time | Moment.js supported input types | yes | no | Default: current time |
cities | Array | yes | no | Default: [{ name: 'UTC', tz: 'UTC' }] |
isEditOn | Bool | yes | no | Toggles add/remove city |
License
See the License file.