For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A Play tour that lingers where the retention order swaps, plus rings on the traced line at each channel it passes or is passed by
When to use
- Rank shifts between 2 orderings of the same items, with each line weighted by the item's volume
- An SRE wallboard that ranks services by traffic against the days of error budget each has left
- A growth review that ranks acquisition channels by signups against the share of users each keeps
When not to use
- A weekly retention curve with period tabs, cohort health notes and a cohort table: use the Cohort Retention block
- Channels flowing into signups and leaking at each trial stage: use the Trial Journey block
- Exact values for several series traced across many dates on a shared time axis: use the Line Chart blocks
- Volumes that merge and split as they flow from sources into costs, stages or outcomes: use the Sankey Chart blocks
- One value per item at a single moment, compared by length with no change in rank: use the Bar Chart blocks
Agent notes
- Replace
CHANNELSin data.ts;retentionAtmodels each channel as a decay fromdayOnetowardfloor, so swap in measured retention per day - Keep Day 7 and Day 30 in
DAYS:DEFAULT_STEPandBANDSfind them withindexOf, and the Reset item label hardcodes Day 30 BAR_MAXdraws a full retention bar at 75%, just above the seed's 74% peak, so raise it when a channel keeps more of its usersCharttakes no props and fetches nothing, so every item, rank and value derives from constants in the block's data.ts- Each item is a Recharts
LinewhosedataKeyis its id and whose values are row indexes, bent into an S-curve by a customshape - Export CSV and the copy action confirm with sonner
toast, so the app needs a mounted Toaster for either message to show
Third-party API docs
- Recharts v3: API reference, docs
- Motion v12: API reference, docs (the docs follow the latest Motion, with no React API break since v12)
- Sonner v2: API reference, docs
https://reui.io/blocks/chart/slope-chart/chart-51.mdget_block("chart-51")npx shadcn@latest add @reui/chart-51Shadcn Components in the Retention Crossover Block
Dependencies
- cn
- motion
- recharts
- sonner
Shadcn Retention Crossover Block
Channel retention slope chart with a day ruler re-ranking channels from signups to Day N retention. Part of the ReUI Shadcn Slope Chart blocks collection.
Acquisition channels ranked by signups slope to their rank by users kept, scrubbed from Day 1 to 90 through 3 lifecycle stages, with an insight footer and CSV export. ReUI Frame, Badge; shadcn Slider, ButtonGroup; Recharts. Cohort retention.
It is composed from Badge, Button, Button Group, Chart, Dropdown Menu, Frame, Slider, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Retention Crossover Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Slope Chart blocks to assemble a full screen instead of a single section.
All Shadcn Slope Chart Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Error Budget Runway Live error budget runway slope chart with traffic weighted lines and a current or baseline switch
Related Shadcn Charts Block Categories
- Area Chart (4) Area chart cards with gradient fills, comparisons to a prior period or baseline, hover readouts and CSV export for trends over time.
- Bar Chart (12) Bar and column charts, stacked hourly outcomes, 3D prisms, diverging lanes and lollipop stems for comparing values.
- Composed Chart (5) Composed charts that layer areas and lines on one axis, with reference lines, goals and release markers.
- Line Chart (6) Line chart cards with single and multi-series lines, dual axes, reference lines and metric switchers.
- Pie Chart (2) Pie and donut chart cards with center totals, per-segment legends and period tabs for share of a whole.
- Radial Chart (3) Radial gauges with semicircle and full arcs, segmented rings and status labels for progress toward a target.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (43) Browse 43 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (51) Browse 51 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (18) Browse 18 Shadcn AI & Agents blocks across 2 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Retention Crossover block?
Use it for a Play tour that lingers where the retention order swaps, plus rings on the traced line at each channel it passes or is passed by.
The Slope Chart category fits:
- Rank shifts between 2 orderings of the same items, with each line weighted by the item's volume
- An SRE wallboard that ranks services by traffic against the days of error budget each has left
- A growth review that ranks acquisition channels by signups against the share of users each keeps
For a weekly retention curve with period tabs, cohort health notes and a cohort table, use the Cohort Retention block. For channels flowing into signups and leaking at each trial stage, use the Trial Journey block. For exact values for several series traced across many dates on a shared time axis, use the Line Chart blocks. For volumes that merge and split as they flow from sources into costs, stages or outcomes, use the Sankey Chart blocks. For one value per item at a single moment, compared by length with no change in rank, use the Bar Chart blocks.
What is the Retention Crossover block built with?
Can I restyle the Retention Crossover block?
How should I use Shadcn slope chart blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.