---
title: Image IPFS
description: Display an image from IPFS
component: true
wagmi:
  link: https://wagmi.sh/react/hooks/useConnect
---

<ComponentPreview
  name="image-ipfs-demo"
  className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]"
/>

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx buidl-cli@latest add image-ipfs
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Install the following components:</Step>

- [ErrorMessage](/docs/components/error-message)

<Step>Install the following shadcn/ui components:</Step>

- [Skeleton](https://ui.shadcn.com/docs/components/skeleton)

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="image-ipfs" />

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx
import { ImageIpfs } from "@/components/buidl/image-ipfs"
```

```tsx
<ImageIpfs
  src="ipfs://QmPbxeGcXhYQQNgsC6a36dDyYUcHgMLnGKnF8pVFmGsvqi"
  alt="ipfs"
/>
```
