UNPKG

@feelback/react

Version:

Use Feelback service within your React website

25 lines (24 loc) 964 B
import { ReactElement } from "react"; import { TargetContent } from "@feelback/js"; import { FormHandlerProps } from "../parts"; export type FeelbackMessageProps = Readonly<TargetContent & { layout?: "button-switch" | "button-dialog" | "inline"; label?: string; revokable?: boolean; textAnswer?: string; }> & Pick<MessageFormProps, "title" | "maxLength" | "minLength" | "placeholder" | "withEmail" | "placeholderEmail" | "slots">; export declare function FeelbackMessage(props: FeelbackMessageProps): import("react/jsx-runtime").JSX.Element; type MessageFormProps = FormHandlerProps<string> & Readonly<{ title?: string; minLength?: number; maxLength?: number; placeholder?: string | false; withEmail?: boolean | "optional" | "required"; placeholderEmail?: string | false; slots?: { BeforeMessage?: ReactElement; BeforeEmail?: ReactElement; BeforeFormButtons?: ReactElement; }; }>; export {};