mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Enable all 15 finance component docs (from .disabled → .mdx) - Create stock-market.mdx, 8 chart docs, 8 block docs, 2 framework docs - Add direction.tsx component (RTL/LTR support from upstream shadcn) - Add xs/icon-xs button sizes, data-variant/data-size attributes - Fix build-registry.mts to handle default exports in namespace re-exports - Add default props to order-entry, positions-list, orders-history, trading-panel - Fix 18 navigation stubs → re-export from root implementations - Add 44 orphaned MDX files to nav (installation, dark-mode, desktop, guides, etc) - Migrate 6 framer-motion imports → motion/react - Bump React 19.2.0→19.2.4, Next.js 16.0.1→16.1.6, motion→12.34.0 - Align lucide-react, sonner v2, tailwind-merge v3, postcss-selector-parser v7 - Remove framer-motion dep (superseded by motion) - Fix @types/react-dom, TypeScript versions across workspaces
79 lines
2.1 KiB
Plaintext
79 lines
2.1 KiB
Plaintext
---
|
|
title: Technical Analysis
|
|
description: Display technical indicator summary and analysis.
|
|
component: true
|
|
---
|
|
|
|
<ComponentPreview
|
|
name="technical-analysis"
|
|
description="Technical indicators and analysis"
|
|
/>
|
|
|
|
## Installation
|
|
|
|
<Tabs defaultValue="cli">
|
|
|
|
<TabsList>
|
|
<TabsTrigger value="cli">CLI</TabsTrigger>
|
|
<TabsTrigger value="manual">Manual</TabsTrigger>
|
|
</TabsList>
|
|
|
|
<TabsContent value="cli">
|
|
|
|
```bash
|
|
npx @hanzo/ui@latest add technical-analysis
|
|
```
|
|
|
|
</TabsContent>
|
|
|
|
<TabsContent value="manual">
|
|
|
|
<Steps>
|
|
|
|
<Step>Install the following dependencies:</Step>
|
|
|
|
```bash
|
|
npm install @hanzo/ui
|
|
```
|
|
|
|
<Step>Copy and paste the following code into your project.</Step>
|
|
|
|
<ComponentSource name="technical-analysis" />
|
|
|
|
<Step>Update the import paths to match your project setup.</Step>
|
|
|
|
</Steps>
|
|
|
|
</TabsContent>
|
|
|
|
</Tabs>
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { TechnicalAnalysis } from "@hanzo/ui/finance"
|
|
|
|
export default function Demo() {
|
|
return (
|
|
<TechnicalAnalysis
|
|
symbol="NASDAQ:AAPL"
|
|
interval="1D"
|
|
showIntervalTabs={true}
|
|
/>
|
|
)
|
|
}
|
|
```
|
|
|
|
## Props
|
|
|
|
| Prop | Type | Default | Description |
|
|
| ---------------- | ----------------- | ------------- | --------------------------------------------------- |
|
|
| symbol | string | "NASDAQ:AAPL" | Trading symbol to display |
|
|
| interval | string | "1D" | Analysis interval (1m, 5m, 15m, 1h, 4h, 1D, 1W, 1M) |
|
|
| width | string \| number | "100%" | Widget width |
|
|
| height | string \| number | 450 | Widget height |
|
|
| locale | string | "en" | Language locale |
|
|
| colorTheme | "light" \| "dark" | "dark" | Color theme |
|
|
| isTransparent | boolean | false | Transparent background |
|
|
| showIntervalTabs | boolean | true | Show interval selection tabs |
|