{"repo":"haoxins/react-flatpickr","free":true,"listed":false,"github":"https://github.com/haoxins/react-flatpickr","clone":"git clone https://github.com/haoxins/react-flatpickr.git","description":"flatpickr for React","language":"TypeScript","stars":622,"topics":["react","flatpickr","hacktoberfest"],"license":"MIT","category":"ui-components","readme_excerpt":"[![NPM version][npm-img]][npm-url] [![License][license-img]][license-url] [![Dependency status][david-img]][david-url] react-flatpickr Flatpickr for React. Table of contents - Installation - Usage - Basic props - defaultValue - value - children - className - Event handlers - Advanced props - Troubleshooting Installation This package can be install with yarn or npm npm yarn Usage Basic props defaultValue string optional This is the default value that will be passed to the inner input value string array object number optional Same as below options Object optional - Flatpickr options : you can pass all Flatpickr parameters here. - All Flatpickr [hooks][hooks] can be passed within this option too. Example : children node optional This option is closely related with the wrap option from Flatpickr , please refer to the former link for more information. className string optional Custom className that will be applied to the inner input element. In case you need to modify the rendered input styles this is the prop you should use. Event handlers The following props are provided in order to customize the Flatpickr's functions default behaviour. Please refer to the Events & Hooks section from Flatpickr library. onChange function optional onOpen: function function optional onClose: function function optional onMonthChange: function function optional onYearChange: function function optional onReady: function function optional onValueUpdate: function function optional onDayCreate: function ","default_branch":null,"files":null,"tree":[],"storefront":"/r/haoxins","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/haoxins/react-flatpickr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}