FieldInfointerface
import { FieldInfo } from '@mortar-kit/core'
interface FieldInfoUI description of a field, stored in its Valibot metadata under mortar.
Properties
readonly kind: FieldKindreadonly label: stringreadonly help?: stringreadonly placeholder?: stringreadonly required?: booleanText-like fields: the value must not be empty.
readonly maxLength?: numberText-like fields: maximum length.
readonly options?: Readonly<Record<string, string>>select: option value → option label.readonly min?: numbernumber: input constraints.readonly max?: numberreadonly step?: numberreadonly item?: AnyFieldlist: the field each item is edited with.readonly fields?: Readonly<Record<string, AnyField>>object: the nested fields.readonly collection?: stringreference: the name of the collection whose documents it points to.readonly accept?: readonly AssetKind[]imageandfile: the kinds of uploaded file it accepts.readonly private?: booleanKept out of the browser on public pages (see
Common.private).