BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/HextaUI/billing-invoice-details

Billing Invoice Details

hextaui/billing-invoice-details
FreeComponent

Detailed invoice view in a sheet with line items and payment information.

Install it

npx shadcn@latest add https://hextaui.com/r/billing-invoice-details.json

Source

registry/new-york/blocks/billing/billing-invoice-details.tsxhextaui.com/r/billing-invoice-details.json · first 6 KB
1"use client";
2
3import { Download, Loader2, Printer } from "lucide-react";
4import { useState } from "react";
5import { cn } from "@/lib/utils";
6import { Badge } from "@/registry/new-york/ui/badge";
7import { Button } from "@/registry/new-york/ui/button";
8import { Separator } from "@/registry/new-york/ui/separator";
9import {
10 Sheet,
11 SheetContent,
12 SheetDescription,
13 SheetHeader,
14 SheetTitle,
15} from "@/registry/new-york/ui/sheet";
16
17export interface InvoiceLineItem {
18 description: string;
19 quantity: number;
20 unitPrice: number;
21 subtotal: number;
22}
23
24export interface InvoiceDetails {
25 id: string;
26 invoiceNumber: string;
27 date: Date;
28 dueDate?: Date;
29 amount: number;
30 currency?: string;
31 status: "paid" | "pending" | "failed" | "refunded" | "void";
32 description?: string;
33 lineItems: InvoiceLineItem[];
34 subtotal: number;
35 tax?: {
36 amount: number;
37 rate?: number;
38 label?: string;
39 };
40 discount?: {
41 amount: number;
42 code?: string;
43 label?: string;
44 };
45 total: number;
46 paymentMethod?: {
47 type: string;
48 last4?: string;
49 brand?: string;
50 };
51 billingAddress?: {
52 name: string;
53 line1: string;
54 line2?: string;
55 city: string;
56 state: string;
57 zip: string;
58 country: string;
59 };
60 downloadUrl?: string;
61}
62
63export interface BillingInvoiceDetailsProps {
64 invoice: InvoiceDetails | null;
65 open: boolean;
66 onOpenChange: (open: boolean) => void;
67 onDownload?: (invoiceId: string) => void;
68 onPrint?: (invoiceId: string) => void;
69 className?: string;
70 currency?: string;
71}
72
73function formatDate(date: Date): string {
74 const year = date.getFullYear();
75 const month = date.toLocaleString("en-US", { month: "short" });
76 const day = date.getDate();
77 return `${month} ${day}, ${year}`;
78}
79
80function formatPrice(amount: number, currency = "USD"): string {
81 return new Intl.NumberFormat("en-US", {
82 style: "currency",
83 currency,
84 minimumFractionDigits: 2,
85 maximumFractionDigits: 2,
86 }).format(amount);
87}
88
89function getStatusConfig(status: InvoiceDetails["status"]) {
90 switch (status) {
91 case "paid":
92 return {
93 label: "Paid",
94 variant: "default" as const,
95 className: "bg-green-500/10 text-green-600 border-green-500/20",
96 };
97 case "pending":
98 return {
99 label: "Pending",
100 variant: "secondary" as const,
101 className: "bg-yellow-500/10 text-yellow-600 border-yellow-500/20",
102 };
103 case "failed":
104 return {
105 label: "Failed",
106// … truncated

What it pulls in

Other registry items

  • badge
  • button
  • separator
  • sheet

Files it writes

  • registry/new-york/blocks/billing/billing-invoice-details.tsx

Facts

Registry
HextaUI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on HextaUI hextaui.com preetsuthar17/HextaUI on GitHub Raw registry item This item as JSON

More from HextaUI

All 139 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionHextaUIComponentsFree1 dep
AI Chat Historyai-chat-historyHextaUIComponentsFreeno deps
AI Citationsai-citationsHextaUIComponentsFreeno deps
AI Conversationai-conversationHextaUIComponentsFreeno deps
AI Error Handlerai-error-handlerHextaUIComponentsFreeno deps
AI File Uploadai-file-uploadHextaUIComponentsFreeno deps
AI Messageai-messageHextaUIComponentsFree4 deps
AI Model Selectorai-model-selectorHextaUIComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex