Neighbour Problem Manager

    react-star-picker
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.13 • Public • Published

    react-star-picker

    A highly customizable star-rating component

    npm version npm license

    Default features include

    Support for custom star-renderer

    Even more customizability is provided by the ability to use your own star-renderer. See example in styleguide.

    Documentation

    Installation

    npm i react-star-picker
    

    Usage

    import React, { useState } from 'react';
    import StarPicker from 'react-star-picker';
    
    const ParentComponent = () => {
      const [rating, setRating] = useState(null);
    
      const onChange = (value) => {
        setRating(value);
      };
    
      return (
        <div>
          <StarPicker onChange={onChange} value={rating} />
        </div>
      );
    };

    Styleguide

    Props

    Configuration

    Styles

    Examples

    Component APIs

    Install

    npm i react-star-picker

    DownloadsWeekly Downloads

    347

    Version

    2.0.13

    License

    MIT

    Unpacked Size

    18.4 kB

    Total Files

    10

    Last publish

    Collaborators

    • mmkari