This forum post also has a great walk through for how to add dynamic editing regions to custom components: