How to create sub props, or prop arrays ?

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

Hello, the radio group and many other default components have a very convenient prop that enables you to repeat elements and open sub prop menus to edit its values like the pictures below.

I created a custom component of the “Radio button” while also using the repeat element function to select how many buttons to show depending on the array, each button has its own label and value, however i can`t find a way to create a prop that adds elements like the default setup, the closer i was able to do is create a data prop with an array but its not a good solution design wise.

how can i tell plasmic that some props need to be inside submenus like the pictures above, this will help me in many components i’ve created, for the time being i solved it like this.

But this is not a good solution at all when it can be easily solved with an array.

I’ve found myself building alot of components though plasmic that i can use multiple times and change them if needed fast, so i hope i can get a solution without resorting to code.

thanks.

Hi, if you are using code components you can use the array type Code components API reference | Learn Plasmic to create this list-builder UI in your props. If you are referring to native plasmic components it’s not possible currently to create a prop to the component that is going to generate the list-builder UI, but you can use the type object to achieve a more free approach than the hardcoded approach that you are going with currently.

is there a way to add the that type using code to the list of available types in the native plasmic components, i find it way faster to create the components in plasmic directly instead that with code. how could i add this optional type using a code component?

i already published some code components so if feel free to not go alot into detail if you dont need to.

No

Please refer to the link that I shared Code components API reference | Learn Plasmic