Glow Candle Card
An ink “Sales Report” card with monospaced rolling numerals, a neon delta and a glowing candlestick chart: candles grow from their midpoints, new ones stream in live and a crosshair shows OHLC on hover or ← →.
Try it: Hover the chart or focus it and press ← →.
Brings its own background. Ink card that stays dark in both themes (neon reads best on black); every text pair meets AA on #050505.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/glow-candle-card.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/glow-candle-card. You can also copy the source into components/ui/glow-candle-card.tsx (view on GitHub).
Usage
import { GlowCandleCard } from '@/components/ui/glow-candle-card'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
candles | Candle[] | generated | { o, h, l, c, label? } — passing data turns off the live stream. |
value / delta / subValue | number / number / string | 9134 / 2.5 / “$185,301” | Headline figures. |
liveMs | number | 2600 | Stream interval; 0 disables. |
accent | string | '#4dff9a' | Neon hue. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Data Widgets components
- Glow Level Card
The ink stat card with segmented neon level meters: segments light left to right with a bloom, levels re-balance live, and hovering or focusing a row reveals its channel and share.
- Smart Widget Stack
An iOS-style widget stack: the top widget sits at full size with the next ones peeking above; scroll, swipe vertically, use ↑ ↓ or the side dots to flip through on a damped spring while content…
- Glow Histogram Card
A neon gradient histogram beside the ink stat card: bars rise on a soft spring with glowing caps that fade into the card, values drift live and hover / ← → lifts a bar with its value.
- Comparison Bar Card
This period vs last as paired bars: a segmented control slides a pill between Week, Month and Year while bars re-grow on a spring, and hovering or focusing a pair lifts it with both values.
- Budget Area Card
A soft white squircle with a big rolling total, a delta pill and floating soft-3D banknotes. An indigo stepped area chart draws itself in with drifting sparkles and an end arrow, and a tooltip…
- Goal Progress Card
A savings goal with a liquid progress bar: topping up springs the fill forward under a moving sheen, milestone ticks light as they pass and reaching the goal morphs the button into a check.