I am wanting to pass an array of string's into a react component with JSS Sitecore. At the moment, I am having to use CommonFieldTypes.SingleLineText in the sitecore component definition and splitting the string passed in on the ', ' to create an array within the actual React component.
Is there a field type where I can pass in a string array in the yml file to the component structure without the need to then turn it into an array in the component like so?
- componentName: ProgressBar fields: data: ["1. test", "2. test", "3. Test"]