In Salesforce, lightning-record-edit-form is a powerful component that allows you to create and edit records with ease. However, there are scenarios where you might want to display a dynamic set of fields. This can be based on user input, specific conditions, or other logic within your component.
Instead of giving fields name in LWC component itself, you can store these field api in Metadata and fetch from apex class.