amis-rpc-design/node_modules/rc-rate/lib/Star.d.ts

17 lines
698 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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;