sv-star-rating
TypeScript icon, indicating that this package has built-in type declarations

0.0.59 • Public • Published

Angular Shortcode

SvStarRating

Table of Contents

Demo


Angular Shortcode

Stackblitz

Installation


Install with NPM

npm i sv-star-rating

Options


Name Type Default Value Description
margin string 2px
bgColor string #9c9c9c
activeBgColor string gold
size string 40px
value string / number 2
readonly boolean false
disabled boolean false
radiusRatio number 16
innerOuterRadiusRatio number 4
@Output() valueChange number

Usage


Import SvStarRatingModule in your app

import { SvStarRatingModule } from 'sv-star-rating';

@NgModule({
  imports: [
    ...
    SvStarRatingModule
  ],
  ...
})
export class AppModule { }

Example


<sv-star-rating
  size="40px"
  margin="10px"
  bgColor="gray"
  activeBgColor="gold"
  [(value)]="value"
  [readonly]="false"
  [disabled]="false"
  [radiusRatio]="40"
  [innerOuterRadiusRatio]="2"
  (valueChange)="valueChange($event)">
</sv-star-rating>

Author


Mehdi Sadeghian Samira Vahidi

Contact


github

linedIn

Package Sidebar

Install

npm i sv-star-rating

Weekly Downloads

1

Version

0.0.59

License

none

Unpacked Size

85.9 kB

Total Files

17

Last publish

Collaborators

  • svahidi
  • sadeghianme