react-waitlist
Version:
A customizable waitlist form component for React applications
21 lines (20 loc) • 675 B
TypeScript
import React from 'react';
import { WaitlistProps } from '../core/types';
/**
* Props for the ServerWaitlist component
*/
export interface ServerWaitlistProps extends WaitlistProps {
/**
* Whether to serialize the theme for client-side rendering
* @default true
*/
serializeTheme?: boolean;
}
/**
* Server-side waitlist component
* This component is designed to be used in server components of SSR frameworks (e.g. Next.js App Router)
* It works together with ClientWaitlist to provide a seamless SSR experience
* Import from 'react-waitlist/server'
*/
declare const ServerWaitlist: React.FC<ServerWaitlistProps>;
export default ServerWaitlist;