npm.io
1.0.0 • Published 7 years ago

react-tz

Licence
MIT
Version
1.0.0
Deps
0
Size
287 kB
Vulns
0
Weekly
0

React-tz

An ultimate timezone picker for React. Built on top of react-select, moment-timezone and using real timezone data from timezone-db

Demo

mikevercoelen.github.io/react-tz

Requirements

You need to make sure you have these deps installed first:

Installation

npm install react-tz --save

With peer deps:

npm install react react-select moment-timezone react-tz --save

Example

import React, { useState } from 'react'
import { TimezoneSelect } from 'react-tz'

const Demo = () => {
  const [timezone, setTimezone] = useState(null)
  
  return (
    <TimezoneSelect
      value={timezone}
      onChange={setTimezone} />
  )
}

export default Demo

Keywords