@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 fill={false} colors={['#25f', '#ff0', '#f22']} />
<Spinner fill={true} colors={['#25f', '#ff0', '#f22']} />
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.