---
title: Usage alert
description: A calm limit warning with a direct next action.
---



**Email preview: Usage alert.** Subject: "You’re nearing your email limit". Preview text: "You have used 85% of this month’s email volume". The rendered email is at https://email-sdk.dev/docs/ui/product/usage-alert.



## Installation

**CLI**

```bash
npx shadcn@latest add https://email-sdk.dev/r/usage-alert.json
```

**Manual**

Copy this template into your app and customize its props, words, and links.

```tsx title="src/ui/email/usage-alert.tsx"
import {
  EmailButton,
  EmailCard,
  EmailHeading,
  EmailText,
  ShadcnEmail,
} from "@opencoredev/email-sdk/react";

export function UsageAlertEmail({ percent }: { percent: number }) {
  return (
    <ShadcnEmail preview={`You have used ${percent}% of this month’s email volume`}>
      <EmailCard>
        <EmailHeading>You’re nearing your email limit</EmailHeading>
        <EmailText>Your workspace has used {percent}% of its monthly email volume.</EmailText>
        <div
          style={{
            backgroundColor: "#e4e4e7",
            borderRadius: 999,
            height: 8,
            margin: "24px 0",
            overflow: "hidden",
          }}
        >
          <div style={{ backgroundColor: "#18181b", height: "100%", width: `${percent}%` }} />
        </div>
        <EmailText>85,240 of 100,000 emails used</EmailText>
        <EmailButton href="https://acme.com/usage">Review usage</EmailButton>
      </EmailCard>
    </ShadcnEmail>
  );
}
```
