UNPKG

@feelback/react

Version:

Use Feelback service within your React website

17 lines (16 loc) 709 B
import { ReactElement } from "react"; import { TargetContent } from "@feelback/js"; import { FormHandlerProps } from "."; export type FeelbackLayoutProps<T> = Readonly<TargetContent & { className?: string; layout?: "button-switch" | "button-dialog" | "inline" | "radio-group" | "radio-group-dialog" | "reveal-message"; label?: string; textAnswer?: string; revokable?: boolean; onClose?: () => void; onSuccess?: (feelback: TargetContent & { value: T; }) => void; children: ReactElement<FormHandlerProps<T>>; }>; export declare const FeelbackLayout: import("react").ForwardRefExoticComponent<FeelbackLayoutProps<any> & import("react").RefAttributes<HTMLDivElement>>;