UNPKG

robust-react-ui

Version:

A React component library, built with a focus on accessibility, extensibility and reusability.

27 lines (26 loc) 566 B
export interface IReviewProps { /** * The wrapping form's id * @default star_rating */ formId?: string; /** * Function to set controlled state of Review */ onStarClickFunction: (rating: number) => void; /** * Function to clear the controlled state of Review */ onCrossClickFunction: () => void; /** * @default 0 */ currentValue: number; /** * Size of review stars * @default medium * * * */ size?: 'small' | 'medium' | 'large'; }