npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hadeel-mahmoud/react-interactive-rating-widget

v1.0.0

Published

React rating component that consists of a rating card that allows the user to enter a rating number between 1 and 5 then displays a thank you card once the user has submitted their rating. All the styling and card contents are customizable.

Downloads

1

Readme

Introduction

React rating component that consists of a rating card which allows the user to enter a rating number between 1 and 5 then displays a thank you card once the user has submitted their rating. All the styling and card contents are customizable.

Rating View Thank You View

Installation

npm i @hadeel-mahmoud/react-interactive-rating-widget

Usage

import RatingView from "@hadeel-mahmoud/react-interactive-rating-widget";

<RatingView />;

Properties

| Property | Type | Description | | ----------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | containerStyle | Object | Style of overall wrapper | | ratingViewImage | Image | The image that will appear in the rating view | | ratingViewHeaderText | Text | The header text of rating view | | ratingViewBodyText | Text | The body text content of rating view | | ratingViewSubmitButtonText | Text | The submit button text | | ratingViewImageContainerStyle | Object | The circular image container style | | ratingViewImageStyle | Object | The style of the image in rating view | | ratingViewHeaderStyle | Object | The style of header text in rating view | | ratingViewDescriptionStyle | Object | The style of description text in rating view | | ratingViewSubmitButtonStyle | Object | The style of submit button | | ratingViewNumberContainerStyle | Object | The style of rating numbers container | | ratingViewNumberStyle | Object | The style of the rating numbers. Note that in order to edit the style of the number of hover use the following syntax in the object : "--hover-color": "black","--hover-background-color": "pink", | | ratingViewSelectedNumberStyle | Object | The style of the selected rating value | | thankYouViewImage | Image | The image that will appear in the thank you view | | thankYouText | Text | The thank you text that will appear. | | thankYouViewRatingResultText | Text | The thank you view rating result text should contain the following syntax so that the value selected by the user will be modified on your inserted text: "You selected {value} out of 5" | | thankYouViewDescriptionText | Text | The body text of thank you view | | thankYouViewImageStyle | Object | The style of the thank you image | | thankYouViewRatingResultTextStyle | Object | The style of the rating result text | | thankYouViewHeaderStyle | Object | The style of thank you view header | | thankYouViewDescriptionTextStyle | Object | The style of the thank you view body text |