About
Drawdown chart is a production-ready charts component from BJORK UI, packaged for shadcn registries.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds BJORK Drawdown chart to your project and fits it to your theme.
Code
How BJORK Drawdown chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { ThemeProvider as BjorkDemoThemeProvider } from "next-themes";
import { useState } from "react";
import { DrawdownChart, createEquityCurve } from "@/components/ui/bjork-drawdown-chart";
import { DemoColumn } from "@/components/ui/bjork-drawdown-chart-utils/app-charts-_demo-controls";
const CURVE = createEquityCurve(17);
function SourceDemo(){
const isPreview = false;
const [showBench, setShowBench] = useState(false);
function reset() {
setShowBench(false);
}
return <>
{isPreview ? (
<div className="w-[740px]">
<DrawdownChart data={CURVE.equity} height={420} ariaLabel="Strategy equity" />
</div>
) : (
<DemoColumn width={860}>
<DrawdownChart data={CURVE.equity} benchmark={showBench ? CURVE.benchmark : undefined} height={420} ariaLabel="Strategy equity" />
</DemoColumn>
)}
</>;
}
export default function BjorkRegistryPreview(){return <BjorkDemoThemeProvider attribute="class" defaultTheme="dark" enableSystem={false} storageKey="bjork-review-demo-theme"><div data-component-demo className="dark flex min-h-screen w-full items-center justify-center bg-[var(--bjork-bg)] p-8 text-[var(--bjork-text)]"><div className="w-full max-w-[850px]"><SourceDemo/></div></div></BjorkDemoThemeProvider>}








