To use the Date Field you need to wrap it in a LocalizationProvider component.

import LocalizationProvider from "@sj-ab/component-library.ui.localization-provider";
import DatePicker from "@sj-ab/component-library.ui.date-field";

<LocalizationProvider locale={lang || "sv"}>
<DateField />
</LocalizationProvider>
  • Parameters

    Returns ReactNode

Properties

$$typeof: symbol
defaultProps?: Partial<DateFieldProps & RefAttributes<null | HTMLDivElement>>
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: WeakValidationMap<DateFieldProps & RefAttributes<null | HTMLDivElement>>