# Upcoming Charges URL: /docs/components/upcoming-charges The Upcoming Charges component displays information about upcoming billing cycles, including the next billing date, total amount, and a breakdown of individual charges. *** title: Upcoming Charges description: The Upcoming Charges component displays information about upcoming billing cycles, including the next billing date, total amount, and a breakdown of individual charges. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ```tsx title="src/components/upcoming-charges-demo.tsx" "use client"; import { UpcomingCharges } from "@/components/billingsdk/upcoming-charges"; export function UpcomingChargesDemo() { return ( ); } ``` ## Installation ```bash npx shadcn@latest add @billingsdk/upcoming-charges ``` ```bash pnpm dlx shadcn@latest add @billingsdk/upcoming-charges ``` ```bash yarn dlx shadcn@latest add @billingsdk/upcoming-charges ``` ```bash bunx shadcn@latest add @billingsdk/upcoming-charges ``` ```bash npx @billingsdk/cli add upcoming-charges ``` ```bash pnpm dlx @billingsdk/cli add upcoming-charges ``` ```bash yarn dlx @billingsdk/cli add upcoming-charges ``` ```bash bunx @billingsdk/cli add upcoming-charges ``` ## Usage ```tsx import { UpcomingCharges } from '@/components/billingsdk/upcoming-charges'; ``` ```tsx ; ``` ## Props | Prop | Type | Description | | --------------- | -------------- | ------------------------------------------------ | | className | `string` | Additional CSS classes to apply to the component | | title | `string` | Title for the upcoming charges section | | description | `string` | Description for the upcoming charges section | | nextBillingDate | `string` | Date of the next billing cycle | | totalAmount | `string` | Total amount for the next billing cycle | | charges | `ChargeItem[]` | Array of upcoming charges | ### ChargeItem Object | Property | Type | Description | | ----------- | ----------------------------------------- | -------------------------------- | | id | `string` | Unique identifier for the charge | | description | `string` | Description of the charge | | amount | `string` | Amount of the charge | | date | `string` | Date of the charge | | type | `"prorated" \| "recurring" \| "one-time"` | Type of charge | ```tsx ``` ### Credits * Created by [@sapatmohit](https://github.com/sapatmohit)