RegisterComponent with a list of item

I would like to use Builder.registerComponent to register a slider of images.
I would like to do something like this. But i cannot find any info or exemple on how i could do that.

Builder.registerComponent(Slider, {

name: ‘Slider’,
inputs: [
{
name: ‘slides’,
type: ‘list’,
inputs: [
{
name: ‘test’,
type: ‘string’,
}
]
}
],
});

Can u provide a working exemple.
Thanks

Hey Alexis,

If you want to use custom components in Builder, you can start with what you already have, but you’ll want to adjust your inputs. Since your goal is to create a slider of images, I would recommend using the file type instead of list. This will allow you to upload a file and provides the value as a url string.

Feel free to reach out if you have any additional questions!