TidalUI

Billing overview preview

A consumer-owned plan, usage allowance and semantic invoice overview with native actions and destinations.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/billing-overview

Import components/ui/tidal.css, components/ui/billing-overview.css. Wrap installed components in tidal-scope.

Preview

Billing overview component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/billing-overview.css";
import{TidalBillingOverview}from"./components/ui/billing-overview";
export default(p:Parameters<typeof TidalBillingOverview>[0])=><div className="tidal-scope"><TidalBillingOverview {...p}/></div>;

API and props

TidalBillingOverview.allowances (required)
ReadonlyArray<TidalBillingAllowance>

Required allowances value accepted by this exported component.

TidalBillingOverview.invoiceCaption (required)
ReactNode

Required invoice caption value accepted by this exported component.

TidalBillingOverview.invoices (required)
ReadonlyArray<TidalBillingInvoice>

Required invoices value accepted by this exported component.

TidalBillingOverview.plan (required)
TidalBillingPlan

Required plan value accepted by this exported component.

TidalBillingOverview.title (required)
ReactNode

Required title value accepted by this exported component.

TidalBillingOverview.allowancesLabel
string | undefined

Optional allowances label value accepted by this exported component.

TidalBillingOverview.description
ReactNode

Optional description value accepted by this exported component.

TidalBillingOverview.emptyAllowancesMessage
ReactNode

Optional empty allowances message value accepted by this exported component.

TidalBillingOverview.emptyInvoicesMessage
ReactNode

Optional empty invoices message value accepted by this exported component.

TidalBillingOverview.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalBillingOverview.footer
ReactNode

Optional footer value accepted by this exported component.

TidalBillingOverview.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalBillingOverview.invoiceCountLabel
((count: number) => string) | undefined

Optional invoice count label value accepted by this exported component.

TidalBillingOverview.invoiceHeading
ReactNode

Optional invoice heading value accepted by this exported component.

TidalBillingOverview.invoiceLabels
Partial<TidalBillingInvoiceLabels> | undefined

Optional invoice labels value accepted by this exported component.

TidalBillingOverview.invoiceScrollProps
Omit<HTMLAttributes<HTMLDivElement>, "aria-label" | "children"> | undefined

Optional invoice scroll props value accepted by this exported component.

TidalBillingOverview.invoiceScrollRef
Ref<HTMLDivElement> | undefined

Optional invoice scroll ref value accepted by this exported component.

TidalBillingOverview.periodControl
TidalBillingPeriodControl | undefined

Optional period control value accepted by this exported component.

TidalBillingOverview.tableProps
Omit<TableHTMLAttributes<HTMLTableElement>, "children"> | undefined

Optional table props value accepted by this exported component.

TidalBillingOverview.tableRef
Ref<HTMLTableElement> | undefined

Optional table ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas