@abgov/react-components
Version:
Government of Alberta - UI components for React
41 lines (40 loc) • 1.45 kB
TypeScript
import { ReactNode } from 'react';
import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageStep, Margins } from '@abgov/ui-components-common';
interface WCProps extends Margins {
ref?: React.RefObject<HTMLElement | null>;
id?: string;
heading?: string;
"sub-heading"?: string;
"section-title"?: string;
"back-url"?: string;
type?: string;
"button-text"?: string;
"button-visibility"?: string;
"summary-heading"?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
interface GoabPublicFormPageProps extends Margins {
id?: string;
heading?: string;
subHeading?: string;
summaryHeading?: string;
sectionTitle?: string;
backUrl?: string;
type?: GoabPublicFormPageStep;
buttonText?: string;
buttonVisibility?: GoabPublicFormPageButtonVisibility;
/**
* Triggered when the form page continues to the next step
* @param event - The continue event details
*/
onContinue?: (event: Event) => void;
children: ReactNode;
}
export declare function GoabPublicFormPage({ id, heading, subHeading, summaryHeading, sectionTitle, backUrl, type, buttonText, buttonVisibility, onContinue, children, mt, mr, mb, ml, }: GoabPublicFormPageProps): import("react/jsx-runtime").JSX.Element;
export default GoabPublicFormPage;