That makes sense. I think besides supporting the above array structure, we can support using a string as an item. The user can generate the string in whatever format he likes.

Note that carousel by definition, means showing image slides. That's why Bootstrap has special CSS for the captions. The array structure is designed to be used in the most common cases, while the string format allows users to do whatever they want within a slide.