mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 13:51:19 +00:00
- Fix gray/zinc alias confusion (gray→neutral, zinc→zen) - Consolidate duplicate gray color definition - Add finance components to ui/ directory - Clean up documentation structure - Remove test artifacts and backup files The color aliases were incorrectly mapped: Before: gray→zen, zinc→neutral (wrong) After: gray→neutral, zinc→zen (correct) This ensures Hanzo's branded 'zen' color properly maps to zinc while gray correctly references the standard neutral palette. Verified: - Production build: 544 pages ✓ - All tests passing: 219/219 ✓ - Visual verification: /colors page working ✓ - Code review: Approved ✓ Ready for deployment to ui.hanzo.ai
70 lines
1.8 KiB
Plaintext
70 lines
1.8 KiB
Plaintext
---
|
|
title: News Timeline
|
|
description: Display live financial news and market updates.
|
|
component: true
|
|
---
|
|
|
|
<ComponentPreview name="news-timeline" description="Financial news timeline" />
|
|
|
|
## 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 news-timeline
|
|
```
|
|
|
|
</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="news-timeline" />
|
|
|
|
<Step>Update the import paths to match your project setup.</Step>
|
|
|
|
</Steps>
|
|
|
|
</TabsContent>
|
|
|
|
</Tabs>
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { NewsTimeline } from "@hanzo/ui/finance"
|
|
|
|
export default function Demo() {
|
|
return <NewsTimeline feedMode="all_symbols" colorTheme="dark" />
|
|
}
|
|
```
|
|
|
|
## Props
|
|
|
|
| Prop | Type | Default | Description |
|
|
| ------------- | ----------------- | ------------- | ----------------------------------- |
|
|
| feedMode | string | "all_symbols" | News feed filter mode |
|
|
| market | string | "crypto" | Market to display news for |
|
|
| symbol | string | - | Specific symbol for news (optional) |
|
|
| width | string \| number | "100%" | Widget width |
|
|
| height | string \| number | 400 | Widget height |
|
|
| colorTheme | "light" \| "dark" | "dark" | Color theme |
|
|
| locale | string | "en" | Language locale |
|
|
| isTransparent | boolean | false | Transparent background |
|