Adding an object to an array of props

I am working on integrating a custom component into perspective and was trying to figure out how to add an object when the user clicks the "+" on array of props, similar to how the flex repeater automatically adds an object when you click the "+".

My components props, only shows the Value, Object Array menu where I would like to mimic the flex repeaters behavior:

The flex repeater, adds an instance when you click +.
image

You need to declare the properties correctly in your component's json schema; see this post for more:

2 Likes