Ir al contenido

Campos

Tipos de campo integrados:

KindValorOpciones
textstringplaceholder, minLength, maxLength, pattern
numbernumber | nullmin, max, step, unit, placeholder
booleanbooleanrequired exige true
categorystring | nulloptions como strings o { label, value }
dateDate | nullmin, max, step
seriesarray de puntosminPoints, maxPoints, granularity, ordered, uniqueTimestamps, minDate, maxDate, minValue, maxValue, unit

Opciones compartidas:

{
id: "email",
kind: "text",
label: "Email",
description: "Used for notifications.",
required: true,
defaultValue: "",
hiddenWhen: { kind: "field-value", field: "anonymous", equals: true },
ui: { autocomplete: "email" }
}