Cannot figure out how to edit custom module fields when being used inside template

Hi,
I’m trying to experiment with creating custom modules that can be used by less techinal users via drag and drop templates. I’ve created a super simple module with a single text field and a h1 tag that renders the text. When I add the module to my blank drag/drop template I am unable to edit the text field. Instead I see “this component has no editable fields” under the Default Content section.
Anyways, please let me know what mistakes I am making and thank you in advnace for anyone who has the time to help!

Module:

D&D Template:

It seems that changing “module.var_name” to “widget.var_name” solves my problem. So in this simple example, “module.text_field” needed to be “widget.text_field”

You need to publish it