Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rm-ng-star-rating

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rm-ng-star-rating

A highly optimized and fully customizable pure angular component for value range selection.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by66.67%
Maintainers
0
Weekly downloads
 
Created
Source

Angular Star Rating

Advanced, customizable, Optimized ,Minimal, light-weight Angular ratings.

npm License


RmNgStarRating for Angular

A fully customizable and feature-rich Angular standalone component for advanced star ratings with precision and responsive design

If you like this plugin, please give it a star ⭐.

Installation

Install it with npm

npm i rm-ng-star-rating
yarn: yarn add rm-ng-star-rating

Live DEMO

See the implementation here

Basic usage:

Import RmNgStarRatingComponent in your component imports.

import { RmNgStarRatingComponent } from 'rm-ng-star-rating';

@Component({
  standalone: true,
  selector: 'app',
  template: `
   <rm-ng-star-rating
      [rating]="4"
      [starCount]="5"
      [color]="'yellow'"
      [size]="'24px'"
      [emptyColor]="'lightgray'"
      [readOnly]="false"
      (ratingUpdated)="onRatingUpdated($event)"
   ></rm-ng-star-rating>
  `,
  styleUrl: './example.component.scss',
  imports: [RmNgStarRatingComponent]
})
export class AppComponent {
  onRatingUpdated(newRating: number) {
    console.log('New Rating:', newRating);
  }
}

Version Mapping

VersionNg
1.x.x18.x

Rating inputs and outputs:

NameDescriptionDefault
[rating]Current rating to be displayed on load0
[starCount]Number of start to be display on load5
[color]Color to be display on mouse overyellow
[readonly]A flag that indicates if rating can be changedfalse
[emptyColor]Display default star colorlightgray
[size]Font size for start in px24
(ratingUpdated)A stream that emits when the rating value is changed

Issues

If you identify any errors in this component, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!

Author services

Are you interested in this library but lacks features? Write to the author, he can do it for you.

Roadmap

Decimal value - Showing and highlight in decimal to star.
Tooltip - Display tooltip once mouse over

Author

Rajat Malik

Keywords

FAQs

Package last updated on 14 Sep 2024

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