Work with Records Using Base Components

To create forms that let users view, edit, and create Salesforce records, use the lightning-record-form, lightning-record-edit-form, and lightning-record-view-form components. For more information, see Compare Base Components.

The lightning-record*form components are the easiest way to work with records. They provide a UI to view, create, and edit records—similar to the record detail page in Salesforce. To create a custom UI, or if you don’t need a metadata-driven UI, use a wire adapter.

When working with records using base components, you can:

You can also display a record form based on a record type and handle a custom event on a form. See Usage Considerations for Working with Records.