import { Badge } from 'terra-profile-image/package.json?dev-site-package';

import ProfileImageDefault from './example/ProfileImageDefault?dev-site-example';
import ProfileImageFit from './example/ProfileImageFitTypes?dev-site-example';
import ProfileImagePlaceholderFallback from './example/ProfileImagePlaceholderFallback?dev-site-example';
import ProfileImageVariant from './example/ProfileImageVariants?dev-site-example';
import ProfileImageHigherOrderComponent from './example/ProfileImageHigherOrderComponent?dev-site-example';

import ProfileImagePropsTable from 'terra-profile-image/lib/ProfileImage?dev-site-props-table';

<Badge />

# Terra Profile Image

The terra-profile-image component displays an avatar image while the profile image is being loaded. If the profile image successfully loads, the avatar image is replaced with the profile image. Otherwise, the avatar image is left as is. All styling set on the profile image will be applied to the avatar image.

## Getting Started

- Install with [npmjs](https://www.npmjs.com):
  - `npm install terra-profile-image`

<!-- AUTO-GENERATED-CONTENT:START Peer Dependencies -->
## Peer Dependencies

This component requires the following peer dependencies be installed in your app for the component to properly function.

| Peer Dependency | Version |
|-|-|
| react | ^16.8.5 |
| react-dom | ^16.8.5 |

<!-- AUTO-GENERATED-CONTENT:END -->

## Usage

```jsx
import ProfileImage from 'terra-profile-image';
```

## Examples
<ProfileImageDefault title="Basic Profile Image" />
<ProfileImagePlaceholderFallback title="Placeholder Fallback Examples" />
<ProfileImageFit />
<ProfileImageVariant />
<ProfileImageHigherOrderComponent />

## Profile Image Props
<ProfileImagePropsTable />
