@abgov/react-components
Version:
Government of Alberta - UI components for React
25 lines (24 loc) • 852 B
TypeScript
import { ReactNode } from 'react';
import { GoabFormState, GoabPublicFormStatus } from '@abgov/ui-components-common';
interface WCProps {
ref?: React.RefObject<HTMLElement | null>;
status?: string;
name?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-public-form": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
interface GoabPublicFormProps {
status?: GoabPublicFormStatus;
name?: string;
onInit?: (event: Event) => void;
onComplete?: (event: GoabFormState) => void;
onStateChange?: (event: GoabFormState) => void;
children: ReactNode;
}
export declare function GoabPublicForm({ status, name, onInit, onComplete, onStateChange, children, }: GoabPublicFormProps): import("react/jsx-runtime").JSX.Element;
export default GoabPublicForm;