@readr-media/react-dropping-text

1.0.9 • Public • Published

@readr-media/react-dropping-text · npm version

Demo

Usage Example

import DroppingText from '@readr-media/react-dropping-text'
import React from 'react'
import { createRoot } from 'react-dom/client'
const reactRootId = 'root'
const container = document.getElementById(reactRootId)
const root = createRoot(container)

const mockTextArr = [
  'This is',
  '<span style="3em">Dropping Text</span>',
  'example',
]

root.render(
  <DroppingText
    showLoadingImg
    textArr={mockTextArr}
  />
)

Create Embed Code

See @readr-media/react-embed-code-generator for more information.

Installation

yarn install

Development

$ yarn dev
// or
$ npm run dev
// or
$ make dev

Build (React, ES6 above Transpiling)

$ npm run build
// or
$ make build

NPM Publish

After executing Build scripts, we will have /lib folders, and then we can execute publish command,

npm publish

Note: before publish npm package, we need to bump the package version first.

Package Sidebar

Install

npm i @readr-media/react-dropping-text

Weekly Downloads

192

Version

1.0.9

License

MIT

Unpacked Size

88.1 kB

Total Files

11

Last publish

Collaborators

  • bibibobobi
  • xuanchang
  • dyfu95
  • erase2004
  • caesar-wh-lee
  • nickhsine
  • hcchien
  • v61265
  • kjwen
  • yeefun
  • kwhsiung