UNPKG

@postenbring/hedwig-react

Version:

React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).

33 lines 1.29 kB
import { type InputHTMLAttributes } from "react"; import { type InputGroupProps } from "../input-group"; export type DatePickerProps = Omit<InputGroupProps & InputHTMLAttributes<HTMLInputElement>, "children" | "type"> & { /** * Accessible title for the calendar button * * This button currently only shows in Chrome. * * @defaultValue "Åpne kalender" */ calendarButtonTitle?: string; }; /** * A basic implementation of a date picker * * This date picker is an implementation of native date picker, as you get * with `<input type="date" />`, where the input field is dressed in Hedwig styling. * * Due to accessibility concerns you will only see the appropriate Hedwig calendar * icon in Chrome. Firefox will show built in icon and Safari will show no icon. * Not tested in Edge. */ export declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<InputGroupProps & InputHTMLAttributes<HTMLInputElement>, "children" | "type"> & { /** * Accessible title for the calendar button * * This button currently only shows in Chrome. * * @defaultValue "Åpne kalender" */ calendarButtonTitle?: string; } & import("react").RefAttributes<HTMLInputElement>>; //# sourceMappingURL=date-picker.d.ts.map