File size: 581 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Loading Placeholder

## Usage

```js
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.