Stock Line, animated React component
A trading-app price chart: scrub along it and a dot rides the line while the price rolls digit by digit and the change turns green or red. Switching range morphs the line into its new shape, and on 1D the last price keeps ticking live.
- Pro
- Dashboards
- Hover
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
NXUSLive
$58,708.83
+1,312.65 (+2.29%)Today
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| theme | "auto" | "light" | "dark" | "auto" | "auto" follows the page's .dark class; "light" or "dark" pins the card's palette. |
| symbol | string | "NXUS" | Ticker shown in the corner and read out in the chart's label. |
| smooth | boolean | true | Draw the line as smooth curves instead of straight segments. |
| fill | boolean | true | Fade a gradient area under the line. |
| up | string | "#30d158" | Line and change colour while the price is at or above the range's open. |
| down | string | "#ff453a" | Line and change colour while the price is below the range's open. |
| autoplay | boolean | false | Cycles through the ranges and sweeps the dot along each one until someone interacts. |