@fremtind/jkl-feedback-react
Version:
Jøkul react feedback component
17 lines (16 loc) • 515 B
TypeScript
import { ReactNode, FC, ComponentProps } from "react";
import { Feedback } from "../Feedback";
import { FeedbackOption, FeedbackType } from "../types";
type Props = Pick<ComponentProps<typeof Feedback>, "addOnQuestion"> & {
type: "radio" | "smiley";
label: string;
helpLabel?: string;
options: FeedbackOption[];
successMessage?: {
title: string;
children: ReactNode;
};
onSubmit: (value: FeedbackType) => void;
};
export declare const MainQuestion: FC<Props>;
export {};