@abgov/react-components
Version:
Government of Alberta - UI components for React
28 lines (27 loc) • 839 B
TypeScript
import { JSX } from 'react';
import { GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
interface WCProps extends Margins {
ref: React.RefObject<HTMLElement | null>;
name?: string;
value?: string;
min?: string;
max?: string;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabCalendarProps extends Margins {
name?: string;
value?: string;
min?: string;
max?: string;
testId?: string;
onChange: (details: GoabCalendarOnChangeDetail) => void;
}
export declare function GoabCalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoabCalendarProps): JSX.Element;
export default GoabCalendar;