How to add an import widgets functionality to wordpress themes without a plugin
WordPress doesn’t have a way to do this on its own. The best plugin to export widgets on one website I used, and import them into another website is Widget Importer & Exporter.