DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Area Chart4
Bar Chart12
Composed Chart5
Line Chart6
Pie Chart2
Radial Chart3
Sankey Chart3
Slope Chart2
  • Error Budget Runway
  • Retention Crossover
Sparkline11
Status Tracker3

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 CHANNELS in data.ts; retentionAt models each channel as a decay from dayOne toward floor, so swap in measured retention per day
  • Keep Day 7 and Day 30 in DAYS: DEFAULT_STEP and BANDS find them with indexOf, and the Reset item label hardcodes Day 30
  • BAR_MAX draws a full retention bar at 75%, just above the seed's 74% peak, so raise it when a channel keeps more of its users
  • Chart takes 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 Line whose dataKey is its id and whose values are row indexes, bent into an S-curve by a custom shape
  • 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
Markdownhttps://reui.io/blocks/chart/slope-chart/chart-51.md
MCPget_block("chart-51")
Installnpx shadcn@latest add @reui/chart-51
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in the Retention Crossover Block

  • BadgeReUI
  • Button
  • Button Group
  • Chart
  • Dropdown Menu
  • FrameReUI
  • Slider

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?

Retention Crossover uses Badge, Button, Button Group, Chart, Dropdown Menu, Frame, Slider. Installing the block through the ReUI registry pulls those dependencies in for you.

Can I restyle the Retention Crossover block?

Yes. It reads your design tokens, so switching style, radius, base color, font, or icon library in the customizer restyles it without touching the markup.

How should I use Shadcn slope chart blocks in a real project?

Treat them as structured starting points. Keep the layout, hierarchy, and interaction ideas that work, then replace placeholder content, data wiring, and business logic with your own product requirements.
PreviousError Budget Runway

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey Chart
  • Slope Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital Twin

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. Charts
  3. Slope Chart
  4. Retention Crossover
MarkdownShare

Shadcn Retention Crossover

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.