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.json

Or, 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

Component props
PropTypeDefaultNotes
widgetsStackWidget[]Balance / Steps / Spend / Bill{ id, label, tint, render }
defaultIndexnumber0Starting widget.
autoMsnumber0Idle auto-rotation; pauses on hover and focus.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • 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.

See all 13 Data Widgets components