@dlguswo333/react-simple-spinner
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

@dlguswo333/react-simple-spinner

Introduction

@dlguswo333/react-simple-spinner is a simple and lightweight spinner made as a react functional component.
you can set the size, colors to iterate, and a flag whether to fill or not of a spinner.

Examples

<Spinner fill={false} colors={['#aaa', '#333']} />

spinner-two-colors

<Spinner fill={false} colors={['#25f', '#ff0', '#f22']} />

spinner-fill-false

<Spinner fill={true} colors={['#25f', '#ff0', '#f22']} />

spinner-fill-false

Props

Prop Type Description Optional Default
size string Size of spinner. YES 40px
width string Width of spinner when fill is false. YES 4
fill boolean Fill in spinner. NO -
colors string[] List of colors to iterate. NO -

Version History

Attention

Before version 0.6.0, there were miswritten dependencies and missed build outputs which caused numerous problems.
Please use the latest version to avoid unwanted problems.

0.6.0

  • Improve stabilities.
  • Improve dependency specifications.
  • Shrink package size by deleting unnecessary files.
  • Add new prop: width.

0.5.3

  • Solve build outputs not exist.

0.5.2

  • Fix hook error due to miss-written dependencies.

0.5.1

  • Shrink package size by deleting test codes from build outputs.

0.5.0

  • Refactor codes.
  • Edit package dependencies.
  • Add test code to improve stability.

0.4.0

  • Fix a issue where color sticks out because shape does not overlap the other completely.

0.3.0

  • Fix a color indexing bug in React strict mode.

0.2.0

  • Initial version.

0.1.0

  • Garbage version and Deprecated.

Links


Readme

Keywords

Package Sidebar

Install

npm i @dlguswo333/react-simple-spinner

Weekly Downloads

1

Version

0.6.0

License

MIT

Unpacked Size

8.45 kB

Total Files

6

Last publish

Collaborators

  • dlguswo333