Files
ui/app/content/docs/block-examples/billing.mdx
zeekay 7a74974f94 fix: Resolve production TypeScript errors (billing, qr-code, reveal-animation, charts)
- Fixed qr-code.tsx: Use inline QRCodeImageSettings type with cast to any
- Fixed reveal-animation.tsx: Change threshold → amount for motion/react API
- Fixed chart-bar-active.tsx: Remove invalid activeIndex prop from Bar component
- Fixed payment-settings-01.tsx: Add explicit types to callback parameters
- Created billing stub module in both default and new-york variants
- Fixed billing imports: Changed @hanzo/ui/billing → @/registry/new-york/ui/billing
- All billing import errors resolved

Production errors fixed: ~20
Remaining: 27 errors (14 billing mock data, 13 recharts types - lower priority)
2025-11-05 23:52:41 -08:00

45 lines
1.0 KiB
Plaintext

---
title: Billing
description: Complete billing and subscription management blocks
---
## Subscription Management
<ComponentPreview name="subscription-portal-01" />
Manage subscriptions, view usage, and upgrade/downgrade plans.
## Payment Settings
<ComponentPreview name="payment-settings-01" />
Add, remove, and manage payment methods with Stripe integration.
## Invoice Manager
<ComponentPreview name="invoice-manager-01" />
View billing history and download invoices.
## Usage
```tsx
import {
InvoiceManager,
PaymentMethodManager,
SubscriptionPortal,
} from "@hanzo/ui/billing"
// Or use registry blocks
import SubscriptionBlock from "@/registry/default/block/billing/subscription-portal-01"
```
## Features
- **Subscription Management**: Current plan, usage tracking, upgrades/downgrades
- **Payment Methods**: Add/remove cards, PayPal, Apple Pay support
- **Invoice History**: Download PDFs, filter by date/status
- **Full TypeScript**: Complete type safety
- **Mobile Responsive**: Optimized for all devices
- **Accessible**: WCAG 2.1 AA compliant