Skip to content

Function: DateField()

ts
function DateField(props: DateFieldProps): Block;

Defined in: src/renderer/blocks/index.ts:618

Date picker field.

Parameters

ParameterType
propsDateFieldProps

Returns

Block

Examples

ts
DateField({name: 'birthDate', label: 'Birth date', type: 'date'});
ts
DateField({
  name: 'appointmentDate',
  label: 'Appointment date',
  type: 'datetime-local',
  defaultValue: '2024-01-15T10:00',
  required: true,
});

Matterway Assistant SDK Documentation