@spaced-out/ui-design-system
Version:
Sense UI components library
33 lines • 1.05 kB
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { ColorTypes } from '../../types/typography';
import type { ChipSemanticType } from '../../components/Chip';
export declare const RATING_SIZE: Readonly<{
small: "small";
medium: "medium";
}>;
type ClassNames = Readonly<{
wrapper?: string;
icon?: string;
button?: string;
}>;
type RatingSize = (typeof RATING_SIZE)[keyof typeof RATING_SIZE];
export interface RatingProps {
size?: RatingSize;
start?: number;
end?: number;
quiet?: boolean;
rating?: number;
labels?: Array<string>;
iconColor?: ColorTypes;
onChange?: (rating: number, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
readOnly?: boolean;
hideLabel?: boolean;
iconName?: string;
classNames?: ClassNames;
chipSemantic?: ChipSemanticType;
testId?: string;
}
export declare const Rating: Flow.AbstractComponent<RatingProps, HTMLDivElement>;
export {};
//# sourceMappingURL=Rating.d.ts.map