<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[mebius.design blog]]></title><description><![CDATA[mebius.design blog]]></description><link>https://mebiusdesign.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6afd2b6d54af94234164166e/c467d7d1-a0a7-4009-977f-0eccc424b419.png</url><title>mebius.design blog</title><link>https://mebiusdesign.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 13:15:22 GMT</lastBuildDate><atom:link href="https://mebiusdesign.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Best shadcn chart components and collections, compared honestly]]></title><description><![CDATA[Where to get shadcn charts in 2026: shadcn/ui, shadcn.io, Tremor, Recharts, shadcn-echarts and 62 free animated cards with Figma, and what each does best.]]></description><link>https://mebiusdesign.hashnode.dev/best-shadcn-charts</link><guid isPermaLink="true">https://mebiusdesign.hashnode.dev/best-shadcn-charts</guid><category><![CDATA[React]]></category><category><![CDATA[data visualization]]></category><category><![CDATA[Tailwind CSS]]></category><category><![CDATA[charts]]></category><category><![CDATA[Next.js]]></category><dc:creator><![CDATA[Malik Abimanyu]]></dc:creator><pubDate>Wed, 18 Nov 2026 05:53:43 GMT</pubDate><content:encoded><![CDATA[<p>Search for “shadcn charts” and you get a dozen projects that look alike at first glance. I checked the main ones on their own sites (what they are built on, the licence, whether you need an account, whether there is a Figma file) and wrote down where each one fits. We make one of them, so its limits are in here too.</p>
<p>The best shadcn chart components depend on the job. shadcn/ui’s own charts (MIT, built on Recharts) are the default for standard charts in your theme. shadcn.io adds over 40 chart types on TanStack Charts, free with an account. Tremor offers Tailwind dashboard components, shadcn-echarts brings Apache ECharts’ range, and mebius.design’s 62 free chart cards are finished, animated dashboard cards with a Figma file, in one light design.</p>
<h2>At a glance</h2>
<p><em>Checked on each project’s own site or repository on Nov 17, 2026.</em></p>
<ul>
<li><a href="https://ui.shadcn.com/charts">shadcn/ui charts</a>: Recharts v3 underneath, MIT, free without an account. Area, bar, line, pie, radar and radial charts in your theme. The project makes no Figma file.</li>
<li><a href="https://www.shadcn.io/charts">shadcn.io charts</a>: TanStack Charts underneath, free with an account. Over 40 chart types for React, Vue, Svelte and Solid. No Figma file mentioned.</li>
<li><a href="https://tremor.so/">Tremor</a>: Recharts and Radix UI underneath, Apache 2.0, free. 35+ dashboard components and 300+ blocks. A Tremor UI Kit on Figma Community.</li>
<li><a href="https://recharts.org/">Recharts</a>: the MIT engine under shadcn/ui’s and Tremor’s charts. You compose each chart from its components.</li>
<li><a href="https://github.com/devs-tool/shadcn-echarts">shadcn-echarts</a>: Apache ECharts underneath, MIT, free. 36 chart components, 3D included. No Figma file mentioned.</li>
<li><a href="https://www.mebius.design/freebies/charts?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">mebius.design free charts</a>: their own drawing code (no Recharts), animated with anime.js. 10 are MIT with no account, the other 52 free with an account. 62 finished dashboard cards with their Figma file.</li>
</ul>
<h2>shadcn/ui charts: the default</h2>
<p><em>Recharts charts you copy in, coloured by your theme.</em></p>
<p>shadcn/ui’s <a href="https://ui.shadcn.com/charts">charts</a> are examples you copy into your project: area, bar, line, pie, radar and radial charts, plus tooltip variants. Under them sits the <a href="https://ui.shadcn.com/docs/components/chart">chart component</a> (<code>npx shadcn@latest add chart</code>), which adds a <code>ChartContainer</code>, tooltip and legend parts and a <code>ChartConfig</code> to Recharts v3. The charts themselves are Recharts components.</p>
<ul>
<li>Good at: matching the rest of shadcn/ui. Colours are CSS variables such as --chart-1, set again under .dark, so the charts follow your theme and dark mode.</li>
<li>Licence: MIT, free, no account.</li>
<li>Limits: six chart families. There are no gauge, funnel, heatmap, Sankey or candlestick examples, so other types mean writing the Recharts code yourself.</li>
<li>Figma: the project doesn’t make one. Its <a href="https://ui.shadcn.com/docs/figma">Figma page</a> lists community kits, free and paid.</li>
</ul>
<h2>shadcn.io: 40+ chart types</h2>
<p><em>A separate site from shadcn/ui, built on TanStack Charts and drawn in your theme.</em></p>
<p><a href="https://www.shadcn.io/charts">shadcn.io</a> (a different site from shadcn/ui’s ui.shadcn.com) offers bklit’s charts (bklit-ui, MIT) rebuilt on TanStack Charts and drawn with your shadcn/ui tokens: over 40 chart types and 331 examples, from line, bar and pie charts to gauges, funnels, heatmaps, candlesticks, Sankey diagrams and maps. Each example is one file holding its data and the card around the chart, installed as source with <code>npx shadcn@latest add</code> and the chart’s URL.</p>
<ul>
<li>Good at: range in the shadcn look. Series take --chart-1 to --chart-5, the grid and tooltip read your theme, dark mode follows .dark, and the same charts exist for Vue, Svelte and Solid.</li>
<li>Account: seeing the code and installing it takes a free shadcn.io account (Google or GitHub). Its FAQ says every chart is free in personal and commercial projects; the paid Pro plan covers blocks and its MCP server, not the charts.</li>
<li>Limits: its MCP server has no chart tools, so an AI editor installs a chart from the command you copy, and its chart pages don’t mention a Figma file.</li>
</ul>
<h2>Tremor: dashboard components</h2>
<p><em>Tailwind components on Recharts and Radix UI, now part of Vercel.</em></p>
<p><a href="https://tremor.so/">Tremor</a> has 35+ open-source components for dashboards and charts, among them area, bar, line, combo and donut charts, spark charts, bar lists, category bars, progress bars and circles, and trackers. You copy each one in (they need React 18.2 or later and Tailwind CSS v4) or install a smaller set from npm. Vercel acquired Tremor in January 2025, and <a href="https://blocks.tremor.so/">Tremor’s blocks and templates</a>, 300+ of them and once paid, are now free and open source.</p>
<ul>
<li>Good at: the dashboard pieces around a chart (progress and category bars, trackers, spark charts) in one Tailwind style, with dark mode through dark: classes.</li>
<li>Fit with shadcn/ui: it is a library of its own. Chart colours are Tailwind colour names set in its chartUtils file, not your --chart variables.</li>
<li>Licence: Apache 2.0 for the components; Vercel’s announcement put the blocks under MIT.</li>
<li>npm: the @tremor/react package was last released in January 2025 and lists React 18 as its peer, so on React 19 the copy-in components are the route.</li>
<li>Figma: a Tremor UI Kit on Figma Community, linked from its site.</li>
</ul>
<h2>Recharts: the engine</h2>
<p><em>Under shadcn/ui’s and Tremor’s charts. MIT, SVG, React 16.8 to 19.</em></p>
<p><a href="https://recharts.org/">Recharts</a> is the library under shadcn/ui’s charts and Tremor’s: composable SVG chart components built with React and D3, MIT licensed. Version 3.10.1 (July 2026) supports React 16.8 to 19. Use it directly when no collection has the chart you need, or when you want full control over axes, tooltips and data shapes.</p>
<p>It is an engine rather than a set of finished components, so how it compares with ECharts, Nivo, visx and Chart.js is in <a href="https://www.mebius.design/guides/free-react-chart-libraries?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Free React chart libraries compared</a>.</p>
<h2>shadcn-echarts: ECharts’ range</h2>
<p><em>Apache ECharts with a shadcn look: 36 chart components, MIT.</em></p>
<p><a href="https://github.com/devs-tool/shadcn-echarts">shadcn-echarts</a> wraps Apache ECharts in React components styled like shadcn/ui, with dark and light mode. Its registry has 36 chart components, among them candlestick, gauge, Sankey, heatmap, treemap, sunburst, calendar and map charts, plus 3D charts that need echarts-gl and that its README calls early. You configure each chart with an ECharts options object, so ECharts’ own features carry over, and charts animate on mount by default. It needs React 18 or later and ECharts 6.</p>
<p>Install it from npm (<code>npm install @devstool/shadcn-echarts echarts</code>). Its website and registry URLs answered with an error when we checked on Nov 17, 2026, so npm was the working route that day.</p>
<h2>mebius.design (ours)</h2>
<p><em>62 animated dashboard cards with a Figma file; 10 of them MIT with no account.</em></p>
<p>The <a href="https://www.mebius.design/freebies/charts?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">free shadcn charts</a> on this site are 62 dashboard chart cards, designed in Figma and coded in React + Tailwind v4, each installed from a shadcn registry. A card is a whole widget, not only a chart: its title, figures and controls come with it, and it draws its own chart instead of wrapping Recharts. Each card animates with anime.js (figures count up, bars and arcs grow in, a new period moves to its values), and nothing animates when the visitor prefers reduced motion. Among them are a <a href="https://www.mebius.design/freebies/charts/revenue-overview?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">gauge</a>, a <a href="https://www.mebius.design/freebies/charts/ethereum?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">candlestick chart</a>, a <a href="https://www.mebius.design/freebies/charts/asset-allocation?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Sankey chart</a>, a <a href="https://www.mebius.design/freebies/charts/budget-overview?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">waffle chart</a> and a <a href="https://www.mebius.design/freebies/charts/finance-overview-flow?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">streamgraph</a>.</p>
<ul>
<li>Free: 10 are in the open starter pack (MIT, installed from their URL with no account). The other 52, and the Figma file of all 62, need a free account (the CLI installs the 52 with a token from <a href="https://www.mebius.design/settings/tokens?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Settings › Tokens</a>). They are free to use in your projects under the <a href="https://www.mebius.design/license?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">mebius.design licence</a>, which doesn’t allow redistributing them.</li>
<li>Fit with shadcn/ui: they need the shadcn CLI and its utils helper, not shadcn/ui’s components, and their theme is scoped to the chart cards, so installing them never changes your app’s colours.</li>
<li>AI editors can add them through the mebius MCP server with a free account (<a href="https://www.mebius.design/guides/install-shadcn-components-cli-mcp?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">setup guide</a>).</li>
</ul>
<p>Three of the open cards, installed straight from their URLs:</p>
<p><code>Terminal</code>:</p>
<pre><code class="language-bash">npx shadcn@latest add \
  https://www.mebius.design/r/charts-revenue-overview.json \
  https://www.mebius.design/r/charts-expenses.json \
  https://www.mebius.design/r/charts-income-overview.json
</code></pre>
<p>Each card renders its Figma sample until you pass your own rows. A dashboard page that feeds two of them from your data and keeps the third on its sample:</p>
<p><code>app/dashboard/page.tsx</code>:</p>
<pre><code class="language-tsx">import { ExpensesChart, type ExpensesCategory, type ExpensesPeriod } from "@/components/expenses-chart"
import { IncomeOverviewChart } from "@/components/income-overview-chart"
import { RevenueOverviewChart, type RevenueOverviewPoint } from "@/components/revenue-overview-chart"

// Revenue so far this month, one point per day with sales, the last one today.
// Swap it for a query to your own database or API.
async function getMonthToDate(): Promise&lt;RevenueOverviewPoint[]&gt; {
  return [
    { date: "2026-11-03", value: 4_120 },
    { date: "2026-11-09", value: 11_860.5 },
    { date: "2026-11-16", value: 21_905.75 },
  ]
}

const categories: ExpensesCategory[] = [
  { id: "payroll", label: "Payroll", color: "purple" },
  { id: "software", label: "Software", color: "blue" },
  { id: "marketing", label: "Marketing", color: "orange" },
]

const thisMonth: ExpensesPeriod = {
  value: "month",
  label: "Month",
  values: { payroll: 18_400, software: 2_310, marketing: 4_975 },
  budget: 30_000,
  previous: 24_120,
  changeLabel: "vs last month",
}

export default async function DashboardPage() {
  const revenue = await getMonthToDate()

  return (
    &lt;main className="grid gap-4 p-6 xl:grid-cols-2"&gt;
      &lt;RevenueOverviewChart title="November revenue" data={revenue} target={40_000} previous={19_870} /&gt;
      &lt;ExpensesChart title="Operating costs" categories={categories} periods={[thisMonth]} /&gt;
      &lt;IncomeOverviewChart className="max-w-[418px]" /&gt;
    &lt;/main&gt;
  )
}
</code></pre>
<p>Where they are not the best fit:</p>
<ul>
<li>Dark mode: each card has one light design. shadcn/ui’s, shadcn.io’s, Tremor’s and shadcn-echarts’ charts follow your dark mode.</li>
<li>Your own look: the cards keep their Figma styling (the Keitoto library’s colours and rounded type). Restyling one means editing its Tailwind classes or the charts theme’s colour variables, while shadcn/ui’s and shadcn.io’s charts take your theme as it is.</li>
<li>A general chart API: each card has a fixed layout and data shape. For a chart of any shape, use shadcn/ui’s charts, Recharts or ECharts.</li>
<li>Other stacks: React 19 and Tailwind v4 only, with no Vue or Svelte version.</li>
</ul>
<h2>Not on React, or want more?</h2>
<ul>
<li><a href="https://www.shadcn-vue.com/charts">shadcn-vue’s charts</a> (MIT): area, bar, line and pie charts for Vue, built with Unovis and copied in like shadcn/ui’s.</li>
<li>shadcn.io’s charts also come in Vue, Svelte and Solid versions.</li>
<li>Directories list more shadcn chart projects: <a href="https://allshadcn.com/components/category/charts-graphs/">allshadcn.com</a> had 33 in its Charts &amp; Graphs category on Nov 17, 2026, from single components to whole UI libraries. Check each one’s licence and last update before you depend on it.</li>
</ul>
<h2>Choosing dashboard charts</h2>
<p><em>A chart component or a finished card.</em></p>
<p>Dashboard charts come in two kinds. Chart components (shadcn/ui’s chart component, Recharts, shadcn-echarts) give you the chart and leave the card around it to you. Collections (shadcn.io’s examples, Tremor’s blocks, the mebius cards) give you the card as well, so there is less to build and more of someone else’s design to accept.</p>
<ul>
<li>A few standard charts that match your theme, dark mode included: shadcn/ui’s charts.</li>
<li>Many chart types in the same look, or Vue, Svelte and Solid as well: shadcn.io.</li>
<li>Tailwind charts plus progress bars, trackers and spark charts, with or without shadcn/ui: Tremor.</li>
<li>Apache ECharts’ range (maps, 3D, sunbursts) in shadcn styling: shadcn-echarts.</li>
<li>A chart nobody ships: Recharts directly.</li>
<li>Finished, animated cards that match a Figma file your designers can edit: mebius.design’s free charts. Mixing is fine: their theme is scoped to them, so a mebius card can sit next to a shadcn/ui chart.</li>
</ul>
<blockquote>
<p><strong>Check the licence of what you copy.</strong> MIT and Apache 2.0 allow commercial use; Apache 2.0 asks you to keep its notices. Charts that need an account come with their site’s terms: shadcn.io’s allow personal and commercial projects, and mebius.design’s allow use in your projects but not redistribution.</p>
</blockquote>
<h2>Related</h2>
<ul>
<li><a href="https://www.mebius.design/freebies/charts?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Free charts</a>: 62 animated chart cards with their Figma file, installed with the shadcn CLI.</li>
<li><a href="https://www.mebius.design/freebies/charts/revenue-overview?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Revenue Overview Chart</a>: The open (MIT) gauge from the dashboard example, toward a monthly target.</li>
<li><a href="https://www.mebius.design/guides/free-react-chart-libraries?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Chart libraries compared</a>: The engines under these components: Recharts, ECharts, Nivo, visx and more.</li>
<li><a href="https://www.mebius.design/guides/shadcn-dashboard-templates-figma?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">Dashboard templates with Figma</a>: shadcn dashboard templates compared by Figma file, licence and price.</li>
</ul>
<hr />
<p><em>First published on <a href="https://www.mebius.design/guides/best-shadcn-charts?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-best-shadcn-charts&amp;utm_content=crosspost">mebius.design</a>, where the code samples stay up to date.</em></p>
]]></content:encoded></item><item><title><![CDATA[Animated candlestick chart in React for a shadcn dashboard]]></title><description><![CDATA[shadcn/ui ships no candlestick chart. Add an animated OHLC candlestick card to a React + Tailwind dashboard with the shadcn CLI and feed it your own…]]></description><link>https://mebiusdesign.hashnode.dev/react-candlestick-chart</link><guid isPermaLink="true">https://mebiusdesign.hashnode.dev/react-candlestick-chart</guid><category><![CDATA[React]]></category><category><![CDATA[Tailwind CSS]]></category><category><![CDATA[data visualization]]></category><category><![CDATA[Next.js]]></category><category><![CDATA[TypeScript]]></category><dc:creator><![CDATA[Malik Abimanyu]]></dc:creator><pubDate>Wed, 18 Nov 2026 05:51:10 GMT</pubDate><content:encoded><![CDATA[<p>I needed a candlestick card for a shadcn dashboard. Here is what I ended up doing, and when a real trading library is the better call.</p>
<p>shadcn/ui’s charts cover area, bar, line, pie, radar and radial charts, but not candlesticks. For a candlestick card in a shadcn dashboard, install a registry block: the free Ethereum Chart from mebius.design is a React + Tailwind OHLC card with volume bars, a period switch, keyboard inspection and anime.js motion, added with one shadcn CLI command. For a full trading screen, use a financial charting library instead.</p>
<h2>Pick the right tool first</h2>
<p><em>A dashboard card and a trading terminal need different charts.</em></p>
<p>shadcn/ui’s <a href="https://ui.shadcn.com/charts">chart components</a> wrap Recharts and theme it with your CSS variables. Recharts has no candlestick series, so a candlestick there means drawing custom bar shapes for the bodies and wicks yourself. That leaves three routes:</p>
<ul>
<li>A financial charting library such as TradingView’s Lightweight Charts (Apache 2.0, canvas). It is built for trading screens: thousands of candles, panning, zooming and live updates. It is not a React component and doesn’t use your Tailwind tokens.</li>
<li>Recharts with a custom shape: you stay in the shadcn stack and write the candle drawing, the axis and the tooltip yourself.</li>
<li>A finished candlestick card from a shadcn registry, which drops into a dashboard grid next to your other cards. This guide uses that route.</li>
</ul>
<p>If your page is a price chart people trade from, take the library. If it is a card in a dashboard that shows how a coin, stock or fund moved this week, a card is less work and matches the rest of the page.</p>
<h2>Install the chart with the shadcn CLI</h2>
<p><em>React 19, Tailwind CSS v4 and shadcn CLI 4 or later.</em></p>
<p>The <a href="https://www.mebius.design/freebies/charts/ethereum?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Ethereum Chart</a> is one of the 20 items of the mebius.design open starter pack: its code is MIT and installs straight from its URL, with no account or token. The command also brings the charts theme it needs, which only adds tokens scoped to the chart cards (they carry a data-charts attribute), so it doesn’t change your app’s colours.</p>
<p><code>Terminal</code>:</p>
<pre><code class="language-bash">npx shadcn@latest add https://www.mebius.design/r/charts-ethereum.json
</code></pre>
<p>The other free charts install the same way through the @mebius registry, with a free account and a personal access token from <a href="https://www.mebius.design/settings/tokens?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Settings › Tokens</a> (<a href="https://www.mebius.design/guides/install-shadcn-components-cli-mcp?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">the install guide</a> has the setup).</p>
<p>The CLI writes <code>components/ethereum-chart.tsx</code>, the card parts it uses and anime.js. Render it with its sample week to check the setup:</p>
<p><code>app/page.tsx</code>:</p>
<pre><code class="language-tsx">import { EthereumChart } from "@/components/ethereum-chart"

export default function Page() {
  return &lt;EthereumChart className="max-w-[600px]" /&gt;
}
</code></pre>
<h2>Feed it your own candles</h2>
<p><em>One period per segment of the Week / Month / Year switch.</em></p>
<p>A candle is <code>{ time, open, high, low, close, volume }</code> with the time in milliseconds, oldest first. Each period gives the switch a segment and tells the x axis whether to name days, weeks or months. The example loads three periods from your own endpoint and hides the NAV and market price figures, which only make sense for a fund:</p>
<p><code>components/eth-price-card.tsx</code>:</p>
<pre><code class="language-tsx">"use client"

import * as React from "react"

import { EthereumChart, type EthereumCandle, type EthereumPeriod } from "@/components/ethereum-chart"

// Your API answers with rows of [time in ms, open, high, low, close, volume], oldest first.
type Row = [number, number, number, number, number, number]

const toCandles = (rows: Row[]): EthereumCandle[] =&gt;
  rows.map(([time, open, high, low, close, volume]) =&gt; ({ time, open, high, low, close, volume }))

async function load(interval: "1d" | "1w", limit: number) {
  const response = await fetch(`/api/candles?symbol=ETH&amp;interval=${interval}&amp;limit=${limit}`)
  if (!response.ok) throw new Error(`Candles failed: ${response.status}`)
  return toCandles((await response.json()) as Row[])
}

export function EthPriceCard() {
  const [periods, setPeriods] = React.useState&lt;EthereumPeriod[] | null&gt;(null)

  React.useEffect(() =&gt; {
    let cancelled = false
    Promise.all([load("1d", 7), load("1d", 30), load("1w", 52)]).then(([week, month, year]) =&gt; {
      if (cancelled) return
      setPeriods([
        { value: "week", label: "W", name: "Week", candles: week, unit: "day" },
        { value: "month", label: "M", name: "Month", candles: month, unit: "week" },
        { value: "year", label: "Y", name: "Year", candles: year, unit: "month" },
      ])
    })
    return () =&gt; {
      cancelled = true
    }
  }, [])

  if (!periods) return &lt;div className="h-[562px] max-w-[600px] rounded-2xl bg-neutral-100" /&gt;

  return &lt;EthereumChart className="max-w-[600px]" title="Ethereum" symbol="ETH" periods={periods} stats={[]} /&gt;
}
</code></pre>
<p>The price in the header is the last close and the badge is the change from the first open, so both follow your data. Prices, axis labels and times are formatted with <code>locale</code> and <code>currency</code> (en-US and USD by default); <code>formatTime</code> replaces the axis and tooltip times, which are in UTC by default.</p>
<h2>Put it in a dashboard grid</h2>
<p><em>The card is as wide as its container; the height follows its content.</em></p>
<p>Every chart card from the same registry shares the theme, so a candlestick card sits next to a holdings card without extra styling. Here with the <a href="https://www.mebius.design/freebies/charts/your-asset?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Your Asset Chart</a> (install it the same way, <code>@mebius/charts-your-asset</code>):</p>
<p><code>app/dashboard/page.tsx</code>:</p>
<pre><code class="language-tsx">import { EthereumChart } from "@/components/ethereum-chart"
import { YourAssetChart } from "@/components/your-asset-chart"

export default function DashboardPage() {
  return (
    &lt;main className="grid gap-4 p-6 xl:grid-cols-[minmax(0,600px)_minmax(0,1fr)]"&gt;
      &lt;EthereumChart /&gt;
      &lt;YourAssetChart /&gt;
    &lt;/main&gt;
  )
}
</code></pre>
<blockquote>
<p><strong>Narrow screens.</strong> On a narrow card the period switch wraps under the price and the figures stack in one column, so the same card works in a phone layout.</p>
</blockquote>
<h2>Motion and accessibility</h2>
<ul>
<li>The plot is one slider: arrow keys move between candles, Page Up and Page Down jump a tenth of them, Home and End go to the first and last, Escape hides the tooltip. Screen readers hear the candle’s time and prices.</li>
<li>Candles grow out of their opens one after another, and a new period morphs the old candles into the new ones. With prefers-reduced-motion set to reduce nothing animates.</li>
<li>The server render is the final state, so the card shows real numbers before JavaScript runs.</li>
</ul>
<h2>Related</h2>
<ul>
<li><a href="https://www.mebius.design/freebies/charts/ethereum?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Ethereum Chart</a>: The candlestick card from this guide, with its live demo and Figma file.</li>
<li><a href="https://www.mebius.design/freebies/charts/your-asset?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Your Asset Chart</a>: Holdings by coin with a live price ticker and the latest deposits.</li>
<li><a href="https://www.mebius.design/freebies/charts/price-range?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Price Range Chart</a>: A liquidity pool’s price history with a draggable price range.</li>
<li><a href="https://www.mebius.design/guides/crypto-dashboard-react?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">Crypto dashboard guide</a>: The other cards a crypto dashboard needs, and a full kit for it.</li>
</ul>
<hr />
<p><em>First published on <a href="https://www.mebius.design/guides/react-candlestick-chart?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-react-candlestick-chart&amp;utm_content=crosspost">mebius.design</a>, where the code samples stay up to date.</em></p>
]]></content:encoded></item><item><title><![CDATA[shadcn MCP: install UI components from Claude Code and Cursor]]></title><description><![CDATA[Set up the shadcn MCP server and CLI in Claude Code, Cursor or VS Code, add a private registry and install components by prompt, plus the hosted mebius…]]></description><link>https://mebiusdesign.hashnode.dev/install-shadcn-components-cli-mcp</link><guid isPermaLink="true">https://mebiusdesign.hashnode.dev/install-shadcn-components-cli-mcp</guid><category><![CDATA[React]]></category><category><![CDATA[mcp]]></category><category><![CDATA[#ai-tools]]></category><category><![CDATA[Tailwind CSS]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[Malik Abimanyu]]></dc:creator><pubDate>Wed, 18 Nov 2026 05:48:36 GMT</pubDate><content:encoded><![CDATA[<p>The shadcn CLI has an MCP server built in, so Claude Code, Cursor and VS Code can browse and install registry components for you. Here is the setup for each editor, how to add a private registry, and the errors you will hit and what they mean.</p>
<p>shadcn’s MCP server is built into the shadcn CLI. Run npx shadcn@latest mcp init --client claude, or --client cursor, and your AI editor can browse, search and install items from every registry in components.json. mebius.design adds a hosted MCP server that returns each item’s full source and usage docs.</p>
<h2>What is the shadcn MCP server?</h2>
<p><em>Checked in shadcn’s docs and source on 17 Nov 2026.</em></p>
<p>The shadcn MCP server is part of the shadcn CLI, the MIT-licensed <code>shadcn</code> package on npm (4.23.0 when we checked). Your editor starts it on your own machine with <code>npx shadcn@latest mcp</code>, and the AI can then browse, search and install items from any registry in your <code>components.json</code>: shadcn/ui’s own (no setup needed), third-party registries, private ones behind a token, and namespaced ones such as @acme. See <a href="https://ui.shadcn.com/docs/mcp">shadcn’s MCP docs</a>.</p>
<p>Under the hood it has seven tools (<a href="https://github.com/shadcn-ui/ui/blob/main/packages/shadcn/src/mcp/index.ts">source</a>): list the registries in components.json; list, search and view registry items with their files; find usage examples; return the <code>shadcn add</code> command for chosen items; and a checklist to run after new code is written. The server doesn’t write files itself. The assistant runs the add command it gets back, so every install still goes through the CLI.</p>
<h2>How do you set up shadcn MCP?</h2>
<p><em>One command per editor, then a restart.</em></p>
<p>Run init in your project with the name of your editor. It adds the shadcn server to that editor’s MCP config:</p>
<p><code>Terminal</code>:</p>
<pre><code class="language-bash">npx shadcn@latest mcp init --client claude
# or --client cursor, vscode, codex or opencode
</code></pre>
<p>Restart the editor afterwards. In Claude Code, run <code>/mcp</code> and check that shadcn shows as connected; in Cursor, turn the server on in Cursor Settings; in VS Code, open <code>.vscode/mcp.json</code> and click Start. Codex is the exception: the CLI can’t edit <code>~/.codex/config.toml</code>, so you add the server there by hand. Written by hand for Claude Code, the server is this file:</p>
<p><code>.mcp.json</code>:</p>
<pre><code class="language-json">{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}
</code></pre>
<p>Cursor takes the same block in <code>.cursor/mcp.json</code>; VS Code puts it under <code>"servers"</code> in <code>.vscode/mcp.json</code>. If the editor lists no tools, shadcn’s troubleshooting notes suggest clearing the npx cache (<code>npx clear-npx-cache</code>) and switching the server off and on again.</p>
<h2>How do you add a private registry?</h2>
<p><em>Once per project. The example is the @mebius registry.</em></p>
<p>A private registry is a namespace in components.json: a URL template the CLI fills with the item name and, when the registry needs one, a header that reads a token from your environment (<a href="https://ui.shadcn.com/docs/registry/authentication">shadcn’s authentication docs</a>). The CLI and its MCP server both read it. For mebius.design, create a token in <a href="https://www.mebius.design/settings/tokens?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Settings › Tokens</a> (a free account works) and add:</p>
<p><code>components.json</code>:</p>
<pre><code class="language-json">{
  "registries": {
    "@mebius": {
      "url": "https://www.mebius.design/r/{name}.json",
      "headers": {
        "Authorization": "Bearer ${MEBIUS_TOKEN}"
      }
    }
  }
}
</code></pre>
<p><code>.env.local</code>:</p>
<pre><code class="language-bash">MEBIUS_TOKEN=mbs_your_token
</code></pre>
<blockquote>
<p><strong>Keep the token out of git.</strong> The CLI reads .env.local and .env. Check that .env.local is in your .gitignore, and revoke a token in Settings › Tokens if it leaks.</p>
</blockquote>
<p>Each mebius kit has a theme item. Add it on its own first, then items with <code>--overwrite</code> so shared parts take the kit’s version. Item names start with their kit:</p>
<p><code>Terminal</code>:</p>
<pre><code class="language-bash">npx shadcn@latest add @mebius/charts-theme
npx shadcn@latest add @mebius/charts-revenue-growth --overwrite
</code></pre>
<p>No token yet? The 20 open starter items install from their URL with no account, like the <a href="https://www.mebius.design/freebies/charts/revenue-overview?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Revenue Overview chart</a>: <code>npx shadcn@latest add https://www.mebius.design/r/charts-revenue-overview.json</code>.</p>
<h2>Which shadcn CLI commands matter?</h2>
<p><em>What the MCP server asks for, and what you can run yourself.</em></p>
<p>When an agent gets stuck, the same work runs in a terminal. From <a href="https://ui.shadcn.com/docs/cli">shadcn’s CLI docs</a>, the commands that matter for registries:</p>
<ul>
<li><code>init</code>: creates components.json, adds the cn helper and sets up CSS variables. Once per project.</li>
<li><code>add</code>: installs items by name, @namespace/name or URL. <code>--overwrite</code> replaces files that already exist, <code>--dry-run</code> previews the changes.</li>
<li><code>view</code>: prints an item’s files before you install it.</li>
<li><code>search</code> (alias <code>list</code>): searches one or more registries, with <code>-q</code> for a query.</li>
<li><code>info</code>: shows your project’s setup as the CLI sees it, handy when an install lands in the wrong folder.</li>
</ul>
<p>With the @mebius registry set up, you can find, read and install a chart without leaving the terminal:</p>
<p><code>Terminal</code>:</p>
<pre><code class="language-bash">npx shadcn@latest search @mebius -q "candlestick"
npx shadcn@latest view @mebius/charts-ethereum
npx shadcn@latest add @mebius/charts-ethereum --overwrite
</code></pre>
<h2>What does the mebius MCP server add?</h2>
<p><em>A hosted server with browser sign-in and usage docs per item.</em></p>
<p>mebius.design runs its own MCP server at <code>https://www.mebius.design/api/mcp</code>. Nothing runs on your machine and it doesn’t need a components.json: it reads the kits your account has and returns each item’s source files with their target paths, its npm and registry dependencies, and the usage docs written for that component or block (props, examples, notes). As of 17 Nov 2026, a free account gets all 62 <a href="https://www.mebius.design/freebies/charts?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">free charts</a> and 128 <a href="https://www.mebius.design/freebies/forms?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">free forms</a>; buying a kit adds that kit, and All items adds every kit.</p>
<p>In Claude Code, add it with one command, with no token to copy:</p>
<p><code>Terminal</code>:</p>
<pre><code class="language-bash">claude mcp add --transport http mebius https://www.mebius.design/api/mcp
</code></pre>
<p>Then run <code>/mcp</code>, pick mebius, choose Authenticate, log in to mebius.design in the browser and click Approve. Cursor and VS Code ask you to log in the first time they connect:</p>
<p><code>.cursor/mcp.json</code>:</p>
<pre><code class="language-json">{
  "mcpServers": {
    "mebius": {
      "url": "https://www.mebius.design/api/mcp"
    }
  }
}
</code></pre>
<p>VS Code takes the same URL under <code>"servers"</code> with <code>"type": "http"</code>. Tools that can’t open a browser, like CI or a remote machine, send a token from <a href="https://www.mebius.design/settings/tokens?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Settings › Tokens</a> as the header <code>Authorization: Bearer &lt;your token&gt;</code>. The server has five read-only tools:</p>
<ul>
<li><code>list_kits</code>: the kits your account has, the free ones included, with item counts and categories, and the paid kits it doesn’t own yet.</li>
<li><code>list_items</code> and <code>search_items</code>: find a component or block by kit, type, category or plain words.</li>
<li><code>get_item</code>: one item in full, with every file, its dependencies and its usage docs.</li>
<li><code>get_install_instructions</code>: the components.json entry, the token line and the exact add commands, theme first.</li>
</ul>
<h2>Which MCP server should you use?</h2>
<p><em>Both, for different jobs.</em></p>
<ul>
<li>shadcn MCP: local, free and MIT, and it works with every registry in components.json, shadcn/ui’s own included. Best for browsing many registries and installing through the CLI.</li>
<li>mebius MCP: hosted, signs in through the browser and covers mebius kits only. Best when the agent should read an item’s usage docs before it adapts a block, or write the files by hand in a project without components.json.</li>
</ul>
<p>They don’t clash. With the @mebius registry in components.json, shadcn’s server lists mebius items too, and a prompt like “add the mebius candlestick chart to the dashboard” ends the same way with either one: the theme, then <code>npx shadcn@latest add @mebius/charts-ethereum --overwrite</code>.</p>
<p>Other marketplaces run their own servers too: the <a href="https://ui8.net/mcp">UI8 MCP</a> at <code>https://mcp.ui8.net/mcp</code> is included with UI8’s All Access pass (checked on ui8.net on 17 Nov 2026). How the two marketplaces compare overall is in <a href="https://www.mebius.design/compare/ui8?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">mebius vs UI8</a>.</p>
<h2>What if the CLI or MCP says no?</h2>
<p><em>The mebius registry answers with a message the CLI prints.</em></p>
<ul>
<li>No mebius token was sent: MEBIUS_TOKEN isn’t set where the CLI runs, or the registry URL redirects. Use the exact <a href="https://www">https://www</a> URL above.</li>
<li>The token is invalid or has been revoked: create a new one and replace the line in .env.local.</li>
<li>Your account doesn’t own this kit: the item belongs to a paid kit. Buy it for $19, or <a href="https://www.mebius.design/pricing?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">All items</a> for $259, and run the command again.</li>
<li>No item with that name: item names start with their kit, like @mebius/charts-ethereum. <code>npx shadcn@latest search @mebius</code> lists the ones your token can install.</li>
</ul>
<p>The free items are the quickest test of the whole setup: <a href="https://www.mebius.design/signup?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">create a free account</a> and every chart and form is yours to install, by command or by prompt.</p>
<h2>FAQ</h2>
<h3>Is the shadcn MCP server free?</h3>
<p>Yes. It is part of the shadcn CLI, which is MIT licensed and free. It runs on your machine through npx, so it needs no account or key, apart from any tokens your private registries ask for.</p>
<h3>Does the shadcn MCP server work with private registries?</h3>
<p>Yes. Add the registry to components.json under a namespace, with an Authorization header that reads a token from an environment variable, and put the token in .env.local. The CLI and the MCP server both read it.</p>
<h3>What is the difference between the shadcn CLI and shadcn MCP?</h3>
<p>The CLI is the command-line tool that sets up a project and adds, views and searches registry items. The MCP server lets an AI editor do the same by prompt: it looks items up in your registries and hands the assistant the add command to run.</p>
<h3>Do I need a token for the mebius MCP server?</h3>
<p>No. Claude Code, Cursor and VS Code sign in through the browser: add the server, log in to mebius.design and click Approve. A personal access token from <a href="https://www.mebius.design/settings/tokens?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Settings › Tokens</a> is the fallback for tools that can’t open a browser, and the shadcn CLI needs one for the @mebius registry.</p>
<h3>Can an AI editor install mebius components without an account?</h3>
<p>Only the 20 open starter items, which install from their URL with the plain shadcn CLI. The MCP server needs a sign-in, and a free account covers all 62 charts and 128 forms.</p>
<h2>Related</h2>
<ul>
<li><a href="https://www.mebius.design/freebies/charts?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Free charts</a>: 62 animated chart cards to install with the commands above.</li>
<li><a href="https://www.mebius.design/freebies/forms?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Free forms</a>: 128 animated forms in light and dark.</li>
<li><a href="https://www.mebius.design/guides/is-shadcn-free-commercial-use?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Is shadcn/ui free?</a>: The MIT license, and what free and paid shadcn kits allow.</li>
<li><a href="https://www.mebius.design/guides/figma-to-react-shadcn-registry?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">Figma to React</a>: How the registry behind these commands is made from Figma.</li>
</ul>
<hr />
<p><em>First published on <a href="https://www.mebius.design/guides/install-shadcn-components-cli-mcp?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=guide-install-shadcn-components-cli-mcp&amp;utm_content=crosspost">mebius.design</a>, where the code samples stay up to date.</em></p>
]]></content:encoded></item></channel></rss>