UNPKG

@chepchik/react-rating

Version:

React Rating is a react rating component which supports custom symbols both with inline styles and icon.

23 lines (22 loc) 852 B
import React from "react"; interface RatingProps { totalSymbols?: number; value: number; placeholderValue: number; readonly?: boolean; quiet?: boolean; fractions?: number; direction?: "ltr" | "rtl"; emptySymbol: string | object | React.ReactElement | Array<string | object | React.ReactElement>; fullSymbol: string | object | React.ReactElement | Array<string | object | React.ReactElement>; placeholderSymbol?: string | object | React.ReactElement | Array<string | object | React.ReactElement>; onClick: (value: number, event: React.MouseEvent | React.TouchEvent) => void; onHover?: (value?: number) => void; className?: string; id?: string; style?: React.CSSProperties; tabIndex?: number; "aria-label"?: string; } declare const Rating: React.FC<RatingProps>; export default Rating;