Billing Compliance Certificate Request
A request form for enterprise compliance certificates, such as tax residency letters or VAT exemption documents. Jurisdiction and purpose are picked from selectable button groups, submitting moves through a brief loading state, and a confirmation panel summarizes what was requested with an option to start another request. Built for billing dashboards on enterprise accounts.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/billing-compliance-certificate-request.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/billing/billing36.tsx instead.
Usage
The file also exports billing36Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Billing36, billing36Demo } from "@/components/blocks/billing/billing36"; export default function Page() { return <Billing36 {...billing36Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Request a compliance certificate" | Heading at the top of the form. |
| description | string | none | Supporting text under the heading. |
| jurisdictions | JurisdictionOption[] | none | Jurisdictions offered as a selectable button group. |
| purposes | CertificatePurpose[] | none | Certificate purposes offered as a selectable button group. |
| defaultJurisdictionId | string | jurisdictions[0].id | Jurisdiction selected on first render. |
| defaultPurposeId | string | purposes[0].id | Purpose selected on first render. |
| submitLabel | string | "Request certificate" | Label for the submit button in its idle state. |
| submittingLabel | string | "Submitting request" | Label shown on the submit button while it's in its loading state. |
| historyLabel | string | "View request history" | Label for the optional history link shown after a submitted request. |
| historyHref | string | none | When set, shows the history link in the confirmation panel. |
| className | string | none | Extra classes for the outer container. |
Types
interface JurisdictionOption { id: string; label: string; } interface CertificatePurpose { id: string; label: string; }
Behavior notes
- Jurisdiction and purpose are each a group of real buttons with role="radio" inside a role="radiogroup", so selection works with the keyboard, not just pointer clicks.
- Submitting is disabled until both a jurisdiction and a purpose are selected, then shows an 800ms loading state before switching to a confirmation panel.
- The confirmation panel names the exact purpose and jurisdiction that were submitted, read from the selected option's label.
- "Request another" resets the view back to the form without clearing the previously selected jurisdiction or purpose, so a second request starts from the last choice.
- The history link only renders when historyHref is passed, and only appears after a request has been submitted, not on the initial form.
Frequently asked questions
More Billing Blocks
View all →Billing Invoice List
Invoice history table with status badges, formatted amounts, and a per-row download link, built with shadcn/ui and Tailwind CSS.
Billing Failed Payment Alert
High-contrast failed-payment alert with a message, a retry button, and an optional update-payment-method button, built with shadcn/ui and Tailwind CSS.
Billing Credit Balance
Compact credit balance card with a large total, an optional purchased-versus-promotional breakdown, a low-balance notice, and a top-up button.
Billing Payment Methods
A saved payment method list for React and Next.js with brand icons, a default badge, near-expiry warnings, and remove/set-default actions per row.
Billing Add Card
A card entry form for React and Next.js with auto-formatted fields, internal brand detection, and per-field validation feedback built with shadcn/ui and Tailwind CSS.
Billing Coupon Code
An inline promo code input for React and Next.js with a simulated loading state, an applied summary showing the discount amount, and an invalid-code message.