PromoCursed/node_modules/rc-rate/es/Star.d.ts
2024-08-20 23:25:37 +04:00

17 lines
698 B
TypeScript

import React from 'react';
export interface StarProps {
value?: number;
index?: number;
prefixCls?: string;
allowHalf?: boolean;
disabled?: boolean;
onHover?: (e: React.MouseEvent<HTMLDivElement>, index: number) => void;
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void;
character?: React.ReactNode | ((props: StarProps) => React.ReactNode);
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;
focused?: boolean;
count?: number;
}
declare const _default: React.ForwardRefExoticComponent<StarProps & React.RefAttributes<HTMLLIElement>>;
export default _default;