UNPKG

@envkit/nextjs

Version:

Environment variable management for Next.js applications

36 lines (35 loc) 1.24 kB
import { MissingVar, OnFallbackSubmit } from './EnvKitProvider'; /** * Default fallback UI for EnvKit * This component is used when environment variables are missing * Users can customize this or create their own component */ export interface DefaultFallbackUIProps { missingVars: MissingVar[]; onSubmit: OnFallbackSubmit; isLoading?: boolean; /** * Optional logo URL to display instead of the default Onboardbase logo */ logoUrl?: string; /** * Optional title to display at the top of the form */ title?: string; /** * Optional description text to display below the title */ description?: string; /** * When true, all environment variables will be masked by default * Users can toggle visibility for individual variables */ maskAllEnvs?: boolean; /** * When true, users cannot add new environment variables * Only the required variables will be shown */ disableAddNew?: boolean; } export declare function DefaultFallbackUI({ missingVars, onSubmit, logoUrl, title, description, isLoading, maskAllEnvs, disableAddNew }: DefaultFallbackUIProps): import("react/jsx-runtime").JSX.Element; export default DefaultFallbackUI;