UNPKG

remix-utils

Version:

This package contains simple utility functions to use with [React Router](https://reactrouter.com/).

21 lines (20 loc) 818 B
import * as React from "react"; import type { HoneypotInputProps } from "../server/honeypot.js"; type HoneypotContextType = Partial<HoneypotInputProps>; export declare function HoneypotInputs({ label, nonce, className, }: HoneypotInputs.Props): import("react/jsx-runtime").JSX.Element; export declare namespace HoneypotInputs { type Props = { label?: string; nonce?: string; /** * The classname used to link the Honeypot input with the CSS that hides it. * @default "__honeypot_inputs" */ className?: string; }; } export type HoneypotProviderProps = HoneypotContextType & { children: React.ReactNode; }; export declare function HoneypotProvider({ children, ...context }: HoneypotProviderProps): import("react/jsx-runtime").JSX.Element; export {};