@redocly/theme
Version:
Shared UI components lib
32 lines (31 loc) • 867 B
TypeScript
import type { JSX } from 'react';
import type { OptionalEmailSettings } from '@redocly/config';
export declare const MAX_SCALE = 10;
export type ScaleProps = {
onSubmit: (value: {
score: number;
comment?: string;
reasons?: string[];
max?: number;
email?: string;
}) => void;
settings?: {
label?: string;
submitText?: string;
leftScaleLabel?: string;
rightScaleLabel?: string;
comment?: {
hide?: boolean;
label?: string;
};
reasons?: {
hide?: boolean;
label?: string;
component?: string;
items: string[];
};
optionalEmail?: OptionalEmailSettings;
};
className?: string;
};
export declare function Scale({ settings, onSubmit, className }: ScaleProps): JSX.Element;