Skip to content

RecordForm

A form over one record kind: a field per schema field with its checks; submit saves the record.

Group: Data · Kind: macro · in the lite catalog

example

Open in the playground

readOnly
cancel
missing
This record kind is not declared
Prop Type Required Bindable Description
kind string yes – The package’s record kind.
recordId string – yes The record to update; none = a new record.
submitLabel string – – The submit label. Default "$string.save".
readOnly boolean – – Shows the fields inert, no submit. Default false.
cancel boolean – – An outline Cancel firing cancel. Default false.
path string – – The draft’s data path (default /recordForm/<id>); seed it to edit.
fields [object] – – Filled by the host.
missing boolean – – Filled by the host. Default false.
  • on.submit: runs an action
  • on.cancel: runs an action

None.

none

No basic catalog component maps here.

Box · ChipInput · DatePicker · EmptyState · FieldGroup · Form · FormActions · Input · NumberField · Select · Switch · Textarea · TimePicker

Role: form

form: the expanded Form, one labelled field per schema field

Keys Action
Enter in a single-line field submit
– A failed submit focuses the first invalid field and announces invalidFields

Recipe parts: RecordForm/root RecordForm/unknown RecordForm/fields RecordForm/field RecordForm/text RecordForm/textarea RecordForm/number RecordForm/switch RecordForm/select RecordForm/date RecordForm/time RecordForm/chips RecordForm/actions

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

ChipInput · DatePicker · EmptyState · FieldGroup · Form · FormActions · Input · NumberField