react-tz

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i react-tz

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

294 kB

Total Files

10

Last publish

Collaborators

  • mikevercoelen