Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title and Subtitle rendering inside Slide #80

Open
danielbyun opened this issue Jul 21, 2020 · 2 comments
Open

Title and Subtitle rendering inside Slide #80

danielbyun opened this issue Jul 21, 2020 · 2 comments

Comments

@danielbyun
Copy link

I have an array of strings to display on the carousel for the subtitle prop, and it throws an error.
It runs in the production fine, but was wondering if the library can support the array of strings for title and subtitle.

Thank you!

@leMaik
Copy link
Member

leMaik commented Jul 21, 2020

You can handle selecting one of the array items yourself when using the component. It only displays one title and subtitle at a time so it makes sense to keep the props as single strings imho.

@danielbyun
Copy link
Author

Screen Shot 2020-08-13 at 11 54 56 AM

I use it like so where the title displays the date and the subtitle has to display multiple data at once (calories and the foods). I would like to customize the look of the subtitles to better display the information.

Therefore I get this error: index.js:1 Warning: Failed prop type: Invalid prop 'subtitle' of type 'object' supplied to 'Slide', expected 'string'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants