@adonis-agora/authkit-react
Version:
Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.
11 lines (10 loc) • 579 B
TypeScript
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
export interface MagicLinkButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
uid: string;
csrfToken: string;
basePath?: string;
channel?: 'code' | 'link';
pendingChildren?: ReactNode;
children?: ReactNode;
}
export declare function MagicLinkButton({ uid, csrfToken, basePath, channel, pendingChildren, children, className, disabled, ...rest }: MagicLinkButtonProps): import("react").FunctionComponentElement<import("./interaction_form.js").InteractionFormProps>;