![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
svelte-stars-rating
Advanced tools
A Highly Customizable, easy-to-use elegant stars rating component
Install via NPM npm i svelte-stars-rating
Then require in your project:
var StarRating = require('svelte-stars-rating');
or ES6 syntax:
import StarRating from 'svelte-stars-rating'
You can then use the following selector anywhere in your project:
<star-rating></star-rating>
Property | Type | Description | Default |
---|---|---|---|
rating | Number | A number between 0.0-5.0 that will determine the fullness of the 5-stars rating polygons | 1 |
isIndicatorActive | Boolean | A property that deteremines weather a rating indicator would show to the right | true |
Property | Type | Description | Default |
---|---|---|---|
fullStarColor | string | Set the full or partially-full star color | #ffd219 |
emptyStarColor | string | Set the empty or partially-empty star color | #737373 |
styleStarWidth | number | Set the star width | 20 |
Define your config options object in the component importing StarRating e.g
const app = new App({
target: document.body,
props: {
name: "svelte-stars-rating",
rating: 4.7,
isIndicatorActive: false,
style: {
styleStarWidth: 85,
styleEmptyStarColor: "#737373",
styleFullStarColor: "#ffd219"
}
}
})
or
let style = {
styleStarWidth: 85,
styleEmptyStarColor: "#737373",
styleFullStarColor: "#ffd219"
}
<star-rating rating="4.7" style={style]></star-rating>
Feedback would be much appreciated, questions, suggestions, issues are more than welcome.
If you like to support my open-source contributions and feeling generous, feel free to:
FAQs
A Highly Customizable, easy-to-use elegant stars rating component
We found that svelte-stars-rating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.