|
Download wp-calypso/client/blocks/post-share/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/post-share/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/post-share/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/post-share/README.md
557 Bytes
Post Share
Component/Block to share posts to social-media accounts
Example
import PostShare from 'calypso/blocks/post-share';
<PostShare post={ post } siteId={ siteId } />;
Props
post
A post object.
siteId
The id of the site
disabled
If it's true, the form elements of the component will be disabled such as buttons, input fields, etc.
showClose
If it's true, the component will show a close button at the top right.
onClose
A callback that will be triggered when the close button is clicked.