mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
- 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)
45 lines
1.0 KiB
Plaintext
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
|