UNPKG

react-simple-star-rating

Version:

A simple react component for adding a star rating to your project.

19 lines (18 loc) 402 B
type State = { ratingValue: number | null; hoverValue: number | null; hoverIndex: number; valueIndex: number; }; type Action = { type: 'PointerMove'; payload: number | null; index: number; } | { type: 'PointerLeave'; } | { type: 'MouseClick'; payload: number; }; export declare function reducer(state: State, action: Action): State; export {};