diff --git a/README.md b/README.md index c259864..58679b3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ npm i flowbite-datepicker --save After you've installed the NPM library, you will need to import the `Datepicker` module: ```javascript -import Datepicker from 'flowbite-datepicker/Datepicker'; +import {Datepicker} from 'flowbite-datepicker'; ``` Initialize a new element using the `Datepicker` constructor and optionally add custom options based on your needs: @@ -34,7 +34,7 @@ new Datepicker(datepickerEl, { If you want to use the **Tailwind Date Range Picker** you have to import the `DateRangePicker` module: ```javascript -import DateRangePicker from 'flowbite-datepicker/DateRangePicker'; +import {DateRangePicker} from 'flowbite-datepicker'; ``` Then in the same fashion you can initalize a date range picker component by using the `DateRangePicker` constructor: