UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

41 lines (40 loc) 1.29 kB
import { JSX } from 'react'; import { GoabDatePickerInputType, GoabDatePickerOnChangeDetail, Margins } from '@abgov/ui-components-common'; interface WCProps extends Margins { ref: React.RefObject<HTMLElement | null>; name?: string; value?: string; error?: string; min?: string; max?: string; type?: string; relative?: string; disabled?: string; testid?: string; width?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-date-picker": WCProps & React.HTMLAttributes<HTMLElement>; } } } export interface GoabDatePickerProps extends Margins { name?: string; value?: Date | string | undefined; error?: boolean; min?: Date | string; max?: Date | string; type?: GoabDatePickerInputType; testId?: string; /*** * @deprecated This property has no effect and will be removed in a future version */ relative?: boolean; disabled?: boolean; width?: string; onChange?: (detail: GoabDatePickerOnChangeDetail) => void; } export declare function GoabDatePicker({ name, value, error, min, max, testId, disabled, type, mt, mr, mb, ml, relative, width, onChange, }: GoabDatePickerProps): JSX.Element; export default GoabDatePicker;