-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Added documentation to use the prop toggleCalendarOnIconClick
Added a documentation to demonstrate the usage of toggleCalendarOnIconClick prop to toggle the reactCalendar open status
- Loading branch information
Balaji Sridharan
committed
Dec 18, 2023
1 parent
79b1595
commit d4790be
Showing
2 changed files
with
16 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
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,11 @@ | ||
() => { | ||
const [selectedDate, setSelectedDate] = useState(new Date()); | ||
return ( | ||
<DatePicker | ||
showIcon | ||
toggleCalendarOnIconClick | ||
selected={selectedDate} | ||
onChange={(date) => setSelectedDate(date)} | ||
/> | ||
); | ||
}; |