react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /date-time-picker.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /date-time-picker.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/date-time-picker.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/date-time-picker.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/date-time-picker.tsx
-
curl -L -o date-time-picker.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/date-time-picker.tsx
318 Bytes
| import { DateTimePicker } from '@wordpress/components'; | |
| import { useState } from 'react'; | |
| const DateTimePickerExample = () => { | |
| const [ dateTime, setDateTime ] = useState< string | null >( '' ); | |
| return <DateTimePicker currentDate={ dateTime } onChange={ setDateTime } />; | |
| }; | |
| export default DateTimePickerExample; | |