Socket
Socket
Sign inDemoInstall

@igabe/star-rating

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@igabe/star-rating

A simple star rating component


Version published
Maintainers
1
Created
Source

star-rating

image

Installation

npm i @igabe/star-rating

Angular

Add this to main.ts

    import { defineCustomElements } from '@igabe/star-rating/loader'

    defineCustomElements(window)

Other frameworks

This is just a stencil component, so it can be used in other frameworks.

Properties

PropertyAttributeDescriptionTypeDefault
allowZeroallow-zeroIf no stars is allowedbooleanfalse
defaultRatingdefault-ratingThe default rating when the component is loadednumber3
numStarsnum-starsThe total number of starsnumber5
roundedroundedGives the stars a more bubbly lookbooleantrue

Events

EventDescriptionType
ratingChangeEmitted when the rating is changedCustomEvent<any>

FAQs

Package last updated on 06 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc