@molecule/app-ticker-row-solid
Feature · ticker-row · App (browser) · v1.1.3 · Apache-2.0
Financial ticker row — symbol, price, change%, sparkline for crypto/stocks/markets
npm install @molecule/app-ticker-row-solidHow it works
@molecule/app-ticker-row-solid is a ready-made ticker-row feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.
import { TickerRow } from '@molecule/app-ticker-row-solid'
declare function openAsset(id: string): void
export function Watchlist() {
return (
<TickerRow
symbol="BTC"
name="Bitcoin"
price="$67,420"
changePct={2.34}
meta="$1.3T"
onClick={() => openAsset('btc')}
/>
)
}Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Solid financial ticker row.
Exports TickerRow — symbol + price + change% + optional icon, sparkline
and meta, with the direction colored by the ClassMap bond's success/error
text tokens. Use for crypto trackers, stock watchlists, market
dashboards. It is the Solid counterpart of @molecule/app-ticker-row-react:
the same props (React names) and the same DOM for the same input. Pair the
sparkline prop with <Sparkline values={...} /> from
@molecule/app-sparkline-solid.
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Quick Start
import { TickerRow } from '@molecule/app-ticker-row-solid'
declare function openAsset(id: string): void
export function Watchlist() {
return (
<TickerRow
symbol="BTC"
name="Bitcoin"
price="$67,420"
changePct={2.34}
meta="$1.3T"
onClick={() => openAsset('btc')}
/>
)
}
Type
feature
Installation
npm install @molecule/app-ticker-row-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
TickerRowProps
Props accepted by the TickerRow component.
interface TickerRowProps {
/** Symbol / ticker display ("BTC", "AAPL"). */
symbol: JSX.Element
/** Full name display ("Bitcoin", "Apple Inc."). */
name?: JSX.Element
/** Optional leading icon / logo. */
icon?: JSX.Element
/** Current price (formatted string). */
price: JSX.Element
/** Period change percentage. Used for direction + color. */
changePct?: number
/** Period change formatted display (defaults to `changePct` formatted). */
changeDisplay?: JSX.Element
/** Optional sparkline node (pass `<Sparkline values={...} />` from `app-sparkline-solid`). */
sparkline?: JSX.Element
/** Optional volume / market-cap display. May hold a control; it keeps its own clicks. */
meta?: JSX.Element
/**
* Click handler. While it is set the whole row is clickable through a
* transparent native button laid over it, named by the symbol; the inner
* controls (the `meta` slot) sit above that button and keep their own
* clicks.
*/
onClick?: () => void
/** Extra classes. */
className?: string
}
Functions
TickerRow(props)
Financial ticker row — symbol + price + change% + optional sparkline.
Use for crypto trackers, stock watchlists, market dashboards. changePct
drives the ▲/▼/– direction and the theme's success/error text tokens
(cm.textSuccess / cm.textError); price and meta are opaque display
nodes — the app owns formatting, and the default percentage text comes from
Intl.NumberFormat in the app's active locale. While onClick is set the
whole row is clickable through a transparent native button laid over it,
named by the symbol; the inner controls (the meta slot) sit above that
button and keep their own clicks. A native button turns Enter and Space
into the same click itself.
function TickerRow(props: TickerRowProps): JSX.Element
props— Component props (seeTickerRowProps).
Returns: The rendered ticker row.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.14.0 || ^4.0.0@molecule/app-ui^1.0.1@molecule/app-ui-solid^1.1.0solid-js^1.8.0
Runtime Dependencies
-
@molecule/app-solid -
@molecule/app-ui -
@molecule/app-ui-solid -
solid-js -
Requires a wired ClassMap bond (
getClassMap()throws before bonding).price/metaare opaque display nodes — the app owns number/currency formatting. -
changePctdrives direction (▲/▼/–) and the theme's success/error text tokens (cm.textSuccess/cm.textError). PasschangeDisplayto control the change text; the default formatschangePctas a percent in the app's active locale. -
With
onClickthe whole row is clickable through a transparent native button laid over it, named by the symbol; the inner controls (themetaslot) sit above that button and keep their own clicks. A native button turns Enter and Space into the same click itself.
Translations
Translation strings are provided by @molecule/app-locales-ticker-row.