CortexcnCortexcn
Pro

Payout Split

Card payments converging on a splitter that divides every payment as it settles, then fanning out to a card with the total settled, one bar split between the seller, the platform, processing, and tax, and each part's payout counting up as pulses arrive.

Card payments through Splitter to Today's payoutsSettled today: $12,480.00. Kiln & Co., Seller: $10,732.80, 86 percent. Platform, Marketplace fee: $998.40, 8 percent. Processing, Card network: $374.40, 3 percent. Sales tax, Held for filing: $374.40, 3 percent.Card payments1,312 payments todaySplitterSplits every payment as it settles{ } LedgerToday's payoutsLiveSettled today$12,480.00Kiln & Co.Seller$10,732.8086%PlatformMarketplace fee$998.408%ProcessingCard network$374.403%Sales taxHeld for filing$374.403%Every payment splits the same way.Illustrative numbers

Installation

ProPart of Cortexcn Pro

The source for payout-split comes with a Cortexcn Pro license, along with every other chart and the website templates. Pick a license on the pricing page.

Already have a license? Open the code

Usage

import { PayoutSplit } from "@/components/payout-split";
<PayoutSplit
  settled={12480}
  parts={[
    { name: "Kiln & Co.", role: "Seller", share: 0.86 },
    { name: "Platform", role: "Marketplace fee", share: 0.08 },
    { name: "Processing", role: "Card network", share: 0.03 },
    { name: "Sales tax", role: "Held for filing", share: 0.03 },
  ]}
/>

settled is split between the parts by their share, and the shares are scaled to add up to one. Use it on the page for a marketplace, a payments platform, or a creator store, to show where each payment goes.

Examples

Course sales

Revenue from a course, split between two authors, the platform, and processing.

Course sales through Splitter to Course revenueSettled today: $4,860.00. Maya Ortiz, Course author: $3,402.00, 70 percent. Tom Reyes, Co-author: $729.00, 15 percent. Platform, Hosting and support: $583.20, 12 percent. Processing, Card network: $145.80, 3 percent.Course sales486 payments todaySplitterSplits every payment as it settles{ } LedgerCourse revenueLiveSettled today$4,860.00Maya OrtizCourse author$3,402.0070%Tom ReyesCo-author$729.0015%PlatformHosting and support$583.2012%ProcessingCard network$145.803%Authors are paid on every sale.Illustrative numbers

Static

With animated={false}, nothing moves and the amounts stay as given.

Card payments through Splitter to Today's payoutsSettled today: $12,480.00. Kiln & Co., Seller: $10,732.80, 86 percent. Platform, Marketplace fee: $998.40, 8 percent. Processing, Card network: $374.40, 3 percent. Sales tax, Held for filing: $374.40, 3 percent.Card payments1,312 payments todaySplitterSplits every payment as it settles{ } LedgerToday's payoutsLiveSettled today$12,480.00Kiln & Co.Seller$10,732.8086%PlatformMarketplace fee$998.408%ProcessingCard network$374.403%Sales taxHeld for filing$374.403%Every payment splits the same way.Illustrative numbers

Behavior

  • While the flow is on screen, pulses run from the left into the splitter, then on to each part. The amounts count up from zero, then each part adds its share of perPayment every time a pulse reaches it, and the total follows.
  • The split bar gives each part a width by its share and a deeper tint the larger it is; each row's marker carries the same tint.
  • The payment count under the source label goes up as pulses reach the splitter.
  • With reduced motion enabled, or off screen, nothing moves and every amount shows its given value.
  • The whole flow is one SVG that scales to its container. It lays out at minWidth or wider (560px by default); in a narrower container it scrolls sideways and takes keyboard focus.
  • Amounts are written with Intl.NumberFormat in locale and currency. Screen readers hear the total, then each part's payout and share.

Props

PayoutSplit

PropTypeDefaultDescription
partsPayoutSplitPart[]Four sample partsWho each payment is split between
settlednumber12480The amount settled so far, split by parts
perPaymentnumber64Added to a part, before the split, per pulse
paymentsnumber1312Payments counted so far, under the source label
paymentsLabelstring"payments today"The words after the payment count
titlestring"Today's payouts"The card's title
totalLabelstring"Settled today"The label over the total
splitterNamestring"Splitter"The name in the middle node
splitterCaptionstring"Splits every payment as it settles"A line under the middle node
sourceLabelstring"Card payments"The label over the incoming lines
apiLabelstring"Ledger"The label on the lines into the card
notestring"Every payment splits the same way."A note at the foot of the card
captionstring"Illustrative numbers"A small label in the bottom-left corner
currencystring"USD"An ISO 4217 code for the amounts
localestring"en-US"The locale numbers are written in
linesnumber22How many lines of traffic come in from the left
accentstring"var(--foreground)"Color of the pulses, markers, and split bar
animatedbooleantrueRun the pulses and count up while on screen
minWidthnumber560Narrowest layout width in pixels; below it, scroll
ariaLabelstring"Payout split"Names the flow for screen readers
classNamestring-Extra classes on the frame

PayoutSplitPart

PropTypeDefaultDescription
namestring-Who gets this part
rolestring-What the part is, such as "Sales tax"
sharenumber-Its share of every payment, from 0 to 1