|
Download wp-calypso/client/me/purchases/components/loading-placeholder/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/purchases/components/loading-placeholder/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/purchases/components/loading-placeholder/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/purchases/components/loading-placeholder/README.md
581 Bytes
Loading Placeholder
Usage
import { Card } from '@automattic/components';
import { localize } from 'i18n-calypso';
import LoadingPlaceholder from 'calypso/me/purchases/components/loading-placeholder';
const MyComponentLoadingPlaceholder = ( { translate } ) => (
<LoadingPlaceholder title={ translate( 'Header title' ) }>
<Card>{ translate( 'Loading…' ) }</Card>
</LoadingPlaceholder>
);
export default localize( MyComponentLoadingPlaceholder );
Props
path- optional Add a path where back button should lead to.title- Add a header title.