UNPKG

@unicity/design-system

Version:

A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support

50 lines 1.15 kB
import React from 'react'; import { RatingProps as MuiRatingProps } from '@mui/material'; export interface RatingProps extends Omit<MuiRatingProps, 'onChange'> { /** * The current rating value */ value?: number | null; /** * Callback fired when the rating changes */ onChange?: (value: number | null) => void; /** * The maximum rating value */ max?: number; /** * The precision of the rating */ precision?: number; /** * Whether the rating is read-only */ readOnly?: boolean; /** * Whether the rating is disabled */ disabled?: boolean; /** * The size of the rating */ size?: 'small' | 'medium' | 'large'; /** * Label for the rating */ label?: string; /** * Whether to show the value as text */ showValue?: boolean; /** * Icon variant */ variant?: 'star' | 'heart'; /** * The color of the rating */ color?: 'primary' | 'secondary' | 'error' | 'warning' | 'success'; } export declare const Rating: React.FC<RatingProps>; //# sourceMappingURL=Rating.d.ts.map