Download wp-calypso/client/blocks/calendar-button/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/calendar-button/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/calendar-button/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/calendar-button/docs/example.jsx
423 Bytes
| import CalendarButton from 'calypso/blocks/calendar-button'; | |
| const CalendarButtonExample = () => { | |
| const tomorrow = new Date( new Date().getTime() + 24 * 60 * 60 * 1000 ); | |
| return ( | |
| <CalendarButton | |
| primary | |
| showOutsideDays={ false } | |
| disabledDays={ [ { before: new Date() } ] } | |
| selectedDay={ tomorrow } | |
| /> | |
| ); | |
| }; | |
| CalendarButtonExample.displayName = 'CalendarButton'; | |
| export default CalendarButtonExample; | |