Skip to main content
Clever Ops

Ledger Hero

Editorial hero over a live ledger strip, transaction rows tick in and reconcile beneath the headline, numbers settling one by one. The product working, as atmosphere.

Preview & code

Loading Ledger Hero preview

Installation

pnpm dlx shadcn@latest add @cleverui/hero-ledger

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { HeroLedger } from '@/components/blocks/hero-ledger'
Exampletsx
import { HeroLedger } from '@/components/blocks/hero-ledger'

export default function HeroLedgerDemo() {
  return (
    <HeroLedger
      eyebrow="Clearpath · Nightly close"
      title="Every payment finds its invoice before morning."
      description="Clearpath matches bank feeds, card settlements, and AR invoices while your team sleeps. Exceptions surface with the source lines attached, not another spreadsheet."
      primaryCta={{ label: "See tonight's close", href: '#' }}
      secondaryCta={{ label: 'Talk to finance ops', href: '#' }}
      entries={[
        { ref: 'ACH-48291', party: 'Northwind Logistics', amount: '$48,220.00', state: 'matched' },
        { ref: 'WIRE-1104', party: 'Helios Materials', amount: '$12,850.40', state: 'pending' },
        { ref: 'ACH-48302', party: 'Cedar & Pine Co.', amount: '$3,104.75', state: 'matched' },
        { ref: 'CARD-77A2', party: 'Orbit Fleet Rentals', amount: '$891.20', state: 'pending' },
        { ref: 'ACH-48311', party: 'Basin Paper Group', amount: '$6,440.00', state: 'pending' },
        { ref: 'WIRE-1108', party: 'Kestrel Freight', amount: '$21,005.90', state: 'matched' },
      ]}
      summaryLabel="Reconciled tonight"
    />
  )
}

API reference

HeroLedger accepts the following props.

PropTypeDefaultDescription
eyebrowstring
title*string
descriptionstring
primaryCta{ label: string; href: string }
secondaryCta{ label: string; href: string }
entries*HeroLedgerEntry[]4–6 ledger rows shown in the strip
summaryLabelstring'Reconciled tonight'mono label on the strip's footer row

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface HeroLedgerEntry {
  ref: string
  party: string
  amount: string
  state: 'matched' | 'pending'
}

Frequently asked questions

How do I install the Ledger Hero component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/hero-ledger`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Ledger Hero require?

Ledger Hero uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Ledger Hero to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services