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

Map render a unique slide in the carousel #1062

Open
2 tasks done
mbayou opened this issue Jun 7, 2024 · 0 comments
Open
2 tasks done

Map render a unique slide in the carousel #1062

mbayou opened this issue Jun 7, 2024 · 0 comments
Labels
Needs: Repro Issue would be improved by adding clear list of reproduction steps or codesandbox

Comments

@mbayou
Copy link

mbayou commented Jun 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

Hi, 

I am struggling building up my carousel. It looks like when using a map to create React Component in the carousel they just appear in on slide. 

I am sure I am doing something wrong so really any guidance would be very welcome. 


export const AnnounceCard = ({language, token}: AnnounceCardProps) => {
  ...
  return <Card>
    <CardContent>
      <Carousel showArrows showDots>
        {announces.map((announce, index) => (<div key={index}>
          <Typography>ANOTHER {announce.title}</Typography>
          <Typography>ANOTHER {announce.details}</Typography>
        </div>))}
      </Carousel>
    </CardContent>
  </Card>
}
@carbonrobot carbonrobot added the Needs: Repro Issue would be improved by adding clear list of reproduction steps or codesandbox label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Repro Issue would be improved by adding clear list of reproduction steps or codesandbox
Projects
None yet
Development

No branches or pull requests

2 participants