# Index Card

> A market index card for the S&P 500, Dow, Nasdaq and Russell, with tabs between indices and an intraday line you can scrub.

A React component for shadcn/ui and Tailwind CSS, from ssych ui (https://ssych.com). Free, MIT licensed, the source lands in your repo.

## Install

```bash
npx shadcn@latest add @ssych/index-card
```

npm dependencies: clsx, lucide-react, motion, tailwind-merge

## Props

`<IndexCard />`

- `eyebrow?`: `string`
- `indices?`: `IndexQuote[]`
- `defaultIndex?`: `number`
- `openMinutes?`: `number`
- `closeMinutes?`: `number`
- `onSelect?`: `(index: IndexQuote, i: number) => void className?: string`

## Where it belongs

- Dashboard: Dark dashboard components for React, Next.js and Tailwind: KPI rows, heatmaps, balance charts, gauges and the navigation around them. (https://ssych.com/library/s/dashboard)
- Cards: React card components: a draggable card stack, responsive card grids, list views, a bento gallery and news cards. (https://ssych.com/library/s/cards)

## Related

- KPI Card Row: https://ssych.com/library/kpi-card-row.md
- Market Heatmap: https://ssych.com/library/market-heatmap.md
- Balance Chart: https://ssych.com/library/balance-chart.md
- Health Gauge: https://ssych.com/library/health-gauge.md
- Holdings Table: https://ssych.com/library/holdings-table.md
- Donut Chart: https://ssych.com/library/donut-chart.md
- Sankey Diagram: https://ssych.com/library/sankey-flow.md
- Sidebar: https://ssych.com/library/sidebar.md

## Links

- Live preview and code: https://ssych.com/library/index-card
- Source: https://github.com/savvasicevs/ssych-ui
- All components: https://ssych.com/llms-full.txt
