-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(DateSelect): Added DateSelect docs DEV-53
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
The DateSelect component is a more specialized Select to be used when selecting date ranges | ||
|
||
### Example | ||
|
||
```js | ||
<DateSelect> | ||
<DateSelect.Option value={{ from: "12/05/2021", to: "12/05/2021" }}> | ||
Today | ||
</DateSelect.Option> | ||
<DateSelect.Option value={{ from: "13/05/2021", to: "13/05/2021" }}> | ||
Tomorrow | ||
</DateSelect.Option> | ||
<DateSelect.Option value={{ from: "09/05/2021", to: "15/05/2021" }}> | ||
This week | ||
</DateSelect.Option> | ||
<DateSelect.Option value={{ from: "16/05/2021", to: "22/05/2021" }}> | ||
Next week | ||
</DateSelect.Option> | ||
<DateSelect.Option value={{ from: "01/05/2021", to: "31/05/2021" }}> | ||
This month | ||
</DateSelect.Option> | ||
<DateSelect.Option value={{ from: "01/05/2021", to: "30/05/2021" }}> | ||
Next month | ||
</DateSelect.Option> | ||
</DateSelect> | ||
``` |