baseui
Version:
A React Component library implementing the Base design language
19 lines (18 loc) • 646 B
TypeScript
import * as React from 'react';
import type { StarRatingProps, RatingState } from './types';
import type { SyntheticEvent } from 'react';
declare class StarRating extends React.Component<StarRatingProps, RatingState> {
static defaultProps: {
overrides: {};
numItems: number;
readOnly: boolean;
};
state: RatingState;
selectItem: (value: number) => void;
updatePreview: (previewIndex?: number) => void;
handleFocus: (event: SyntheticEvent) => void;
handleBlur: (event: SyntheticEvent) => void;
renderRatingContents: () => any[];
render(): React.JSX.Element;
}
export default StarRating;