johnrjj / horizontal-ticker-react

A horizontal price ticker

Home Page:https://horizontal-ticker.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Horizontal Ticker

A ticker that updates horizontally instead of vertically.

Example

Demo link

example

(gif is potato quality, go to demo site)

Usage

Install

yarn add horizontal-ticker-react

Use

import { Ticker } from 'hotizontal-ticker-react'

const Example = () => {
  // Format number exactly how you want before passing to ticker
  const accountBalance = '$1234.56'

  return (
    <>
      // Basic usage
      <Ticker n={accountBalance} />
      // ... All the bells and whistles:
      <Ticker
        fontFamily={'Helvetica'}
        fontSize={32}
        align={'left'}
        n={accountBalance}
        alignLeftComponentAfterNumber={' transactions'}
      />
    </>
  )
}

Source

Inspired by Ric's tweet

source

Tech

Built by John Johnson. Powered by tsdx.

About

A horizontal price ticker

https://horizontal-ticker.vercel.app

License:MIT License


Languages

Language:TypeScript 96.8%Language:CSS 2.3%Language:JavaScript 0.9%