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 re-animates on arrival.
Try it: Scroll or swipe on the stack, press ↑ ↓, or click the dots.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/smart-widget-stack.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/smart-widget-stack. You can also copy the source into components/ui/smart-widget-stack.tsx (view on GitHub).
Usage
import { SmartWidgetStack } from '@/components/ui/smart-widget-stack'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
widgets | StackWidget[] | Balance / Steps / Spend / Bill | { id, label, tint, render } |
defaultIndex | number | 0 | Starting widget. |
autoMs | number | 0 | Idle auto-rotation; pauses on hover and focus. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Data Widgets components
- 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…
- 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.
- 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.
- 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.
- 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.
- Crypto Ticker Row
A watchlist with live prices: each tick flashes the price green or red and fades back, mini sparklines morph to the new history and every row is a labelled button.