react-slot-machine-text
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

react-slot-machine-text

react-slot-machine-text

https://www.npmjs.com/package/react-slot-machine-text

Installation

npm i react-slot-machine-text

Usage

import { SlotMachine } from 'react-slot-machine-text';

/* ... */
<SlotMachine 
  textData={['Option #1', 'Option #2', ...]} // array of string
  random={true} // whether the options are displayed in a random order (true) or in sequential order (false), true by default
/>
/* ... */

Style

/* change the style of the inner text (<p>) */

.slotMachineText {
  font-size: xx-large;
  caret-color: transparent;
  cursor: pointer;
}

Readme

Keywords

none

Package Sidebar

Install

npm i react-slot-machine-text

Weekly Downloads

5

Version

1.1.2

License

none

Unpacked Size

42.2 kB

Total Files

8

Last publish

Collaborators

  • olwooz