Skip to content

Commit

Permalink
screenshot added
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabyazdi committed Aug 27, 2020
1 parent 61d7fc3 commit b27c4b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/src
/example
webpack.config.js
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# DatePicker

![DatePicker](/example/screenshot.jpg?raw=true "Optional Title")

## Installation

```code
Expand All @@ -19,23 +21,21 @@ export default function Example() {

## Availble props

| Key | value |
| -------------- | :------------------------------------------------------------------------------: |
| date | Date, [DateObject](https://github.com/shahabyazdi/date-object), String or Number |
| timePicker | Boolean (default false) |
| onlyTimePicker | Boolean (default false) |
| format | String (default YYYY/MM/DD) |
| local | en or fa (default en) |
| calendar | georgian of persian (default persian) |
| onChange | Function |
| Key | value | default |
| -------------- | :------------------------------------------------------------------------------: | :--------: |
| date | Date, [DateObject](https://github.com/shahabyazdi/date-object), String or Number | new Date() |
| timePicker | Boolean | false |
| onlyTimePicker | Boolean | false |
| format | String | YYYY/MM/DD |
| local | en or fa | en |
| calendar | georgian of persian | georgian |
| onChange | Function | - |

## Example

### 1- Date

```xml
<DatePicker/>

<DatePicker
date={new Date()}
/>
Expand All @@ -55,7 +55,7 @@ export default function Example() {

<DatePicker
date="2020/27/08"
format="YYYY/MM/DD"
format="YYYY/DD/MM"
/>

<DatePicker
Expand Down
Binary file added example/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b27c4b7

Please sign in to comment.