Skip to content

Labels

KitLabels customizes the copy used by the mounted primitive shell.

mountForm(container, {
transport: createJsonTransport({ endpoint: "/api/predict" }),
schema,
labels: {
form: "Customer profile",
reports: "Model output",
submit: "Run prediction",
validating: "Checking...",
submitting: "Running...",
},
});
LabelDefault role
formAccessible label for the form area.
reportsAccessible label for the report area.
submitSubmit button text.
validatingTemporary label while validation runs.
submittingTemporary label while submit is pending.

For localization, pass translated labels at the same time as the schema. API names stay in English; only user-facing strings need translation.