Date
Use x.date() for date values (no time component).
x.date().label("Birth Date")columnNameAliases
Use alternate CSV headers for the same field.
.columnNameAliases(aliases: string[])
aliaseslists the alternate column names.
label
Sets the user-facing label shown in the widget.
.label(text: string)
textsets the label text.
description
Sets help text shown below the field.
.description(text: string)
textsets the description text.
example
Sets the placeholder example value.
.example(text: string)
textsets the example value.
optional
Makes the field optional.
.optional()
default
Available after .optional().
.default(defaultValue: unknown | (() => unknown | Promise<unknown>))
defaultValuecan be a static value or a function used when the field is empty.
output
Sets the output format template.
.output(template: string)
templatesets the output format template, e.g.,"yyyy-MM-dd"or"MMM d, yyyy".