UNPKG

@amaui/ui-react

Version:
32 lines (31 loc) 859 B
import React from 'react'; import { IBaseElement, ITonal, IColor, ISize, IElement } from '../types'; export interface IRating extends IBaseElement { tonal?: ITonal; color?: IColor; colorInactive?: IColor; size?: ISize; value?: number; valueDefault?: number; valueActive?: number; valueActiveDefault?: number; onChange?: (value: number) => any; onChangeActive?: (value: number) => any; values?: number; precision?: number; onlyValue?: boolean; readOnly?: boolean; disabled?: boolean; icon?: IElement; icons?: { default?: IElement; [property: number | string]: IElement; }; iconInactive?: IElement; iconActive?: IElement; IconProps?: any; IconActiveProps?: any; IconInactiveProps?: any; } declare const Rating: React.FC<IRating>; export default Rating;