select-text-loader

0.1.4 • Public • Published

select-text-loader

npm version

select-text-loader is a simple loader which uses texts from an array as the loader content.

Click here for sample usage

This component only returns the text to be displayed, so the text can be styled and displayed according to the need of the user.

Install

npm i select-text-loader --save

Use

import SelectTextLoader from 'select-text-loader/dist/SelectTextLoader';

// loading : true/false whether to show the loading text or nott
// data : array of texts to be used for loading
// timeGap : time in milliseconds between each loading text
<SelectTextLoader loading={true} data={['hello','hi','loading']} timeGap={60}/>

Development

npm install
npm start

Publish

npm login
npm run publish:run
npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i select-text-loader

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

159 kB

Total Files

15

Last publish

Collaborators

  • aswinzz