UNPKG

@hhgtech/hhg-components

Version:
34 lines (33 loc) 751 B
import React, { CSSProperties } from 'react'; export type Props = { /** * percent of progress */ star: number; /** * does not show empty stars */ hideEmptyStars?: boolean; /** * total stars */ totalStars?: number; /** * Select star, value from 1 to maximum */ onSelect?: (value: number) => void; /** * starProps */ gap?: number; size?: number; style?: CSSProperties; className?: string; }; /** * * Show 5 (or more) stars and allow user vote (optional) * */ declare const RateStars: ({ gap, size, star, totalStars, onSelect, hideEmptyStars, style, className, }: Props) => React.JSX.Element; export { RateStars };