UNPKG

@fremtind/jkl-feedback-react

Version:
17 lines (16 loc) 515 B
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 {};