Michael,
If I understand correctly what you are talking about, I might suggest taking a look at App Inventor. It has a notion of something it calls "components", which are essentially objects (e.g. buttons, labels, text inputs, etc.) with properties (among other things) that can be set at design time via property editors or at runtime via blocks.
The project's general informational website is
here, the web app is
here, and the source code is
here.
One caveat is that the current source code uses a fairly old version of Blockly. We have a version that uses Blockly 10 that is currently in user testing.