@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
24 lines (23 loc) • 1.02 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { InputHTMLAttributes } from 'react';
export declare const dateInputTypes: readonly ["date", "datetime-local"];
type DateInputType = (typeof dateInputTypes)[number];
export type DateInputProps = {
/** Whether the value fails a validation rule. */
invalid?: boolean;
/** The kind of data that the user should provide. */
type?: DateInputType;
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-date-input--docs Date Input docs at Amsterdam Design System}
*/
export declare const DateInput: import("react").ForwardRefExoticComponent<{
/** Whether the value fails a validation rule. */
invalid?: boolean;
/** The kind of data that the user should provide. */
type?: DateInputType;
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & import("react").RefAttributes<HTMLInputElement>>;
export {};