UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

24 lines (23 loc) 894 B
import { ReactNode } from 'react'; import { Margins, GoabFormStorageType, GoabFormOnMountDetail, GoabFormOnStateChange } from '@abgov/ui-components-common'; interface WCProps extends Margins { ref?: React.RefObject<HTMLElement | null>; name: string; storage: GoabFormStorageType; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-simple-form": WCProps & React.HTMLAttributes<HTMLElement>; } } } interface GoabFormProps extends Margins { children: ReactNode; name: string; storage: GoabFormStorageType; onMount: (e: GoabFormOnMountDetail) => void; onStateChange?: (e: GoabFormOnStateChange) => void; } export declare function GoabSimpleForm({ name, storage, onMount, onStateChange, mt, mr, mb, ml, children, }: GoabFormProps): import("react/jsx-runtime").JSX.Element; export default GoabSimpleForm;