UNPKG

ratti

Version:

React Star Rating - Zero dependency, a highly-configurable, accessible rating component for React applications with TypeScript support.

27 lines (22 loc) 833 B
import { ForwardRefExoticComponent } from 'react'; import { RefAttributes } from 'react'; export declare const RateStar: ForwardRefExoticComponent<StarRatingProps & RefAttributes<HTMLDivElement>>; export declare interface StarRatingProps { maxRating?: number; defaultValue?: number; value?: number; onChange?: (rating: number) => void; onHoverChange?: (hoverRating: number) => void; onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void; disabled?: boolean; readOnly?: boolean; precision?: number; activeColorsEnabled?: boolean; customActiveColors?: string[]; variant?: StarRatingVariant; svgPathD?: string; className?: string; size?: number | string; } export declare type StarRatingVariant = "default" | "circle" | "square"; export { }