---
title: Fee Data
description: Displays the fee data of a network.
component: true
wagmi:
  link: https://wagmi.sh/react/hooks/useFeeData
---

<ComponentPreview
  name="fee-data-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 fee-data
```

</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="fee-data" />

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx
import {
  GasPrice,
  MaxFeePerGas,
  MaxPriorityFeePerGas,
} from "@/registry/default/buidl/fee-data"
```

```tsx
<GasPrice />
<MaxFeePerGas />
<MaxPriorityFeePerGas />
```
