UNPKG

@wix/design-system

Version:

@wix/design-system

21 lines (16 loc) 586 B
import * as React from 'react'; export interface StarsRatingBarProps { dataHook?: string; className?: string; size?: starRatingBarSize; readOnly?: boolean; descriptionValues?: [string, string, string, string, string]; value: starRatingBarValue; onChange?: (rate: number) => void; } declare const StarsRatingBar: React.ForwardRefExoticComponent< StarsRatingBarProps & React.RefAttributes<HTMLInputElement> >; export default StarsRatingBar; export type starRatingBarSize = 'tiny' | 'small' | 'medium' | 'large'; export type starRatingBarValue = 0 | 1 | 2 | 3 | 4 | 5;