# reactstrap-timezone-picker

> Timezone picker for react-bootstrap

Latest version **2.0.3** (published 2019-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install reactstrap-timezone-picker
pnpm add reactstrap-timezone-picker
yarn add reactstrap-timezone-picker
bun add reactstrap-timezone-picker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2019-07-11 |
| First published | 2019-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 96.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | Yuri Dymov |
| Maintainers | jakesyl |
| Keywords | react, bootstrap, timezone, picker |

## Links

- npm: https://www.npmjs.com/package/reactstrap-timezone-picker
- Repository: https://github.com/yury-dymov/react-bootstrap-timezone-picker
- Homepage: https://github.com/yury-dymov/react-bootstrap-timezone-picker#readme
- Issues: https://github.com/yury-dymov/react-bootstrap-timezone-picker/issues
- npm.io page: https://npm.io/package/reactstrap-timezone-picker

## Dependencies (3)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [reactstrap](https://npm.io/package/reactstrap.md) ^8.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2019-07-11
- 2.0.1 — 2019-07-11
- 2.0.0 — 2019-07-11

## README

# react-bootstrap-timezone-picker
Time zone picker for reactsrap forked from react-boostrap - [DEMO](https://yury-dymov.github.io/react-bootstrap-timezone-picker)

[![react-bootstrap-timezone-picker](https://github.com/yury-dymov/react-bootstrap-timezone-picker/raw/master/docs/timezone-picker.gif)](https://github.com/yury-dymov/react-bootstrap-timezone-picker)

[![npm version](https://img.shields.io/npm/v/react-bootstrap-timezone-picker.svg?style=flat)](https://www.npmjs.com/package/react-bootstrap-timezone-picker)
[![Downloads](http://img.shields.io/npm/dm/react-bootstrap-timezone-picker.svg?style=flat-square)](https://npmjs.org/package/react-bootstrap-timezone-picker)
[![Build Status](https://img.shields.io/travis/yury-dymov/react-bootstrap-timezone-picker/master.svg?style=flat)](https://travis-ci.org/yury-dymov/react-bootstrap-timezone-picker)
[![Coverage Status](https://coveralls.io/repos/github/yury-dymov/react-bootstrap-timezone-picker/badge.svg?branch=master)](https://coveralls.io/github/yury-dymov/react-bootstrap-timezone-picker?branch=master)

# Versioning
* v2 supports React Bootstrap v1.0.0+
* v1 supports React Bootstrap v0.x.x

# Installation
```Bash
npm install react-bootstrap-timezone-picker
```

# Usage Example
```JavaScript
import TimezonePicker from 'react-bootstrap-timezone-picker';
import 'react-bootstrap-timezone-picker/dist/react-bootstrap-timezone-picker.min.css';
...
<TimezonePicker
  absolute      = {false}
  defaultValue  = "Europe/Moscow"
  placeholder   = "Select timezone..."
  onChange      = {this.handleChange}
/>
...
```
Demo source code is available [here](https://github.com/yury-dymov/react-bootstrap-timezone-picker/blob/master/demo/index.jsx).

# Props
*Note:* all props are optional.

| Prop        | Type           | Default  | Description |
| ------------- |:-------------:| :-----:|:-----------|
| absolute      | bool       | true |    Control time zone list overflow. Please check [demo](https://yury-dymov.github.io/react-bootstrap-timezone-picker) for more details. |
| className      | string       | none |     Class name for container |
| defaultValue      | string       | none |     Initial time zone can be provided |
| onChange(newValue: string)      | func       | none |    Triggered on user selection |
| placeholder      | string       | none |     If value is empty, than placeholder is displayed |
| style      | object       | none |   Style for container |
| timezones | object       | loaded from [timezone.json](https://github.com/yury-dymov/react-bootstrap-timezone-picker/blob/master/src/timezones.json) | Time zone option list  |
| value      | string       | none |   Override selected time zone with a new value |

# License
MIT (c) Yury Dymov

---
_Source: https://npm.io/package/reactstrap-timezone-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
