Skip to main content
Version: Next

DateField API

import { DateField } from '@editora/ui-react';

Props​

PropTypeDescription
descriptionstring
disabledboolean
errorstring
labelstring
localestring
maxstring
minstring
namestring
onChange(detail: { value: string | null; previousValue: string | null; source: string }) => void
onValueChange(value: string | null) => void
readOnlyboolean
requiredboolean
valuestring

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-date-field>​

DateField renders the ui-date-field custom element from @editora/ui-core, which can also be used without React.

Attributes: aria-describedby, aria-description, aria-label, data-error, description, disabled, label, locale, max, min, name, readonly, required, value

Events: change