As mentioned in https://trailhead.salesforce.com/en/content/learn/projects/workshop-override-standard-action/override_4 on overriding the edit button with a lightning component by default on clicking the edit button on record detail page it would open in a model window.
Is this what you want to achieve if that is the case then you can create a lightning component while implementing lightning:actionOverride.
For more details you can check the above trailhead module.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
As mentioned in https://trailhead.salesforce.com/en/content/learn/projects/workshop-override-standard-action/override_4 on overriding the edit button with a lightning component by default on clicking the edit button on record detail page it would open in a model window.
Is this what you want to achieve if that is the case then you can create a lightning component while implementing lightning:actionOverride.
For more details you can check the above trailhead module.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.