@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.
<Spinner fill={false} colors={['#aaa', '#333']} />
<Spinner fill={false} colors={['#25f', '#ff0', '#f22']} />
<Spinner fill={true} colors={['#25f', '#ff0', '#f22']} />
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 | - |
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.
- Improve stabilities.
- Improve dependency specifications.
- Shrink package size by deleting unnecessary files.
- Add new prop:
width
.
- Solve build outputs not exist.
- Fix hook error due to miss-written dependencies.
- Shrink package size by deleting test codes from build outputs.
- Refactor codes.
- Edit package dependencies.
- Add test code to improve stability.
- Fix a issue where color sticks out because shape does not overlap the other completely.
- Fix a color indexing bug in React strict mode.
- Initial version.
- Garbage version and Deprecated.