2.0.1 • Published 4 years ago

react-bootstrap-timezone-picker v2.0.1

Weekly downloads
2,475
License
MIT
Repository
github
Last release
4 years ago

react-bootstrap-timezone-picker

Time zone picker for react-bootstrap - DEMO

react-bootstrap-timezone-picker

npm version Downloads Build Status Coverage Status

Versioning

  • v2 supports React Bootstrap v1.0.0+
  • v1 supports React Bootstrap v0.x.x

Installation

npm install react-bootstrap-timezone-picker

Usage Example

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.

Props

Note: all props are optional.

PropTypeDefaultDescription
absolutebooltrueControl time zone list overflow. Please check demo for more details.
classNamestringnoneClass name for container
defaultValuestringnoneInitial time zone can be provided
onChange(newValue: string)funcnoneTriggered on user selection
placeholderstringnoneIf value is empty, than placeholder is displayed
styleobjectnoneStyle for container
timezonesobjectloaded from timezone.jsonTime zone option list
valuestringnoneOverride selected time zone with a new value

License

MIT (c) Yury Dymov

2.0.1

4 years ago

2.0.0

5 years ago

1.0.13

5 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.6-rc.1

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago