@hhgtech/hhg-components
Version:
Hello Health Group common components
24 lines (23 loc) • 569 B
TypeScript
/// <reference types="react" />
export type TRatingStarsInputProps = {
value: number;
max?: number;
onChange?: (value: number) => void;
readOnly?: boolean;
name?: string;
id?: string;
label?: string | React.ReactNode;
error?: string;
};
export type TRatingStarsProps = {
value: number;
max?: number;
onChange?: (value: number) => void;
readOnly?: boolean;
};
export type TStarProps = {
filled: boolean;
onClick?: () => void;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
};