News Timeline
import { NewsTimeline } from '@hanzo/ui'
Default
All symbols, dark, 400px tall and as wide as its parent.
export function Default() {return <NewsTimeline />}
Market feed
Headlines narrowed to one market, in the light theme.
export function MarketFeed() {return <NewsTimeline feedMode="market" market="crypto" colorTheme="light" height={420} />}
Symbol feed
Headlines narrowed to one symbol.
export function SymbolFeed() {return <NewsTimeline feedMode="symbol" symbol="NASDAQ:AAPL" height={420} />}
Compact
A shorter, transparent feed for embedding beside other panels.
export function Compact() {return (<YStack width={360}><NewsTimeline isTransparent height={280} /></YStack>)}
Types
export type NewsTimelineFeedMode = 'all_symbols' | 'market' | 'symbol'
export type NewsTimelineTheme = 'light' | 'dark'
export interface NewsTimelineProps extends Omit<YStackProps, 'width' | 'height' | 'colorTheme'> {/** News feed filter mode. */feedMode?: NewsTimelineFeedMode/** Market to display news for, read when `feedMode` is `market`. */market?: string/** Specific symbol for news, read when `feedMode` is `symbol`. */symbol?: stringwidth?: string | numberheight?: string | number/** The feed's own palette; independent of the surrounding gui theme. */colorTheme?: NewsTimelineThemelocale?: stringisTransparent?: boolean}
Exports
NewsTimelinetype NewsTimelineFeedModetype NewsTimelinePropstype NewsTimelineTheme