Savva Sicevs

SMA Chart

Component 93

About

A stock price chart with 20 and 50 day simple moving average overlays and crosshair scrubbing, for trading and technical analysis screens. Part of ssych ui: https://ssych.com/library/sma-chart

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds SMA Chart to your project and fits it to your theme.

Code

How SMA Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useEffect } from "react"
import { Demo } from "@/components/ui/sma-chart"

export default function DemoOne() {
  // open the preview in dark by default; the sandbox theme toggle still works
  useEffect(() => { document.documentElement.classList.add("dark") }, [])
  return (
    <div className="w-full">
      <Demo />
    </div>
  )
}

Dependencies

More by Savva Sicevs

View all
  • Price Target Fan

    Price Target Fan

    198
  • Candle Chart

    Candle Chart

    179
  • Market Snapshot

    Market Snapshot

    125
  • Returns Calendar

    Returns Calendar

    99
  • Range Navigator

    Range Navigator

    94
  • Market Watchlist

    Market Watchlist

    93
  • Sectors Donut

    Sectors Donut

    68
  • macOS Dock

    macOS Dock

    39

Explore more

Part of ssych ui — browse the full library on 21st.dev.