import { PropsWithChildren, ReactElement } from 'react'; import { FlowComponentProps } from '../../lib/componentFactory/flowComponent'; import * as Aria from "react-aria-components"; export interface RatingProps extends FlowComponentProps, PropsWithChildren, Omit { /** * The value sets the amount of filled stars. Decimals are rounded to the * nearest whole star. @default: 0 */ value?: number; /** * The defaultValue sets the amount of default filled stars. Decimals are * rounded to the nearest whole star. @default: 0 */ defaultValue?: number; /** The size of the component. @default: "m" */ size?: "s" | "m"; /** * The number of segments the rating consists of. Ignored when the rating has * `RatingSegment` children — those define the number of segments themselves. * * @default: 5 */ maxValue?: number; /** * How the segments are filled. `cumulative` fills every segment up to the * value, `single` fills only the selected segment. * * @default: cumulative */ fill?: "cumulative" | "single"; /** An alternative icon for the empty state */ iconEmpty?: ReactElement; /** An alternative icon for the filled state */ iconFilled?: ReactElement; } /** * @flr-generate all * @flr-slot-props iconEmpty, iconFilled */ export declare const Rating: import('react').FunctionComponent>; export default Rating;