Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
react-dynamic-star
Advanced tools
A Highly Customizable, easy-to-use elegant stars rating component. This component is a port of an open-source component made in vue, you can access the repo in Vue Star Rating.
yarn add react-dynamic-star
npm install react-dynamic-star
import { DynamicStar } from 'react-dynamic-star';
const App = () => {
return (
<div>
<DynamicStar rating={5} />
</div>
)
}
Property | Type | Description | Default |
---|---|---|---|
rating* | Number | A number between 0.0-totalStars that will determine the fullness of the stars rating polygons | |
outlined? | Boolean, String | Use only outlined, the stroke color will use the fullStarColor, pass the color for he the outlined color will use. | |
outlineWidth? | Number | The width for outline | |
sharpnessStar? | Number | Define the sharpness/fatness of a star | 2.5 |
totalStars? | Number | Define total of stars | 5 |
width? | Number | Define width of a star | 100 |
height? | Number | Define height of a star | 100 |
emptyStarColor? | String | Define empty color when star is not filled | transparent |
fullStarColor? | String | Define full star color when star is filled | #FFBC00 |
FAQs
Single component to generate dynamic star svg
We found that react-dynamic-star demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.