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

Question: Pairing shadcn/ui with a Carousel component... #1206

Closed
mathewjordan opened this issue Aug 11, 2023 · 2 comments
Closed

Question: Pairing shadcn/ui with a Carousel component... #1206

mathewjordan opened this issue Aug 11, 2023 · 2 comments

Comments

@mathewjordan
Copy link

This is more of a question...

I'm seeking to pair shadcn/ui with a Carousel (or slider depending on your nomenclature) component. Does anyone have recommendations for this? Requirements would be:

  • fully typed
  • react hooks
  • composable
  • highly accessible
  • unstyled (or capable of that)
@cerimorse
Copy link

I used embla carousel recently on a project with shadcn/ui.

Meets quite a lot of your requirements and they have a react package too. The only thing I don't think is covered is accessibility. This brief discussion covers it but since then it looks like they're providing a new project that helps generate a carousel that includes accessibility.

If it's useful, here's how I implemented embla carousel in my project alongside shadcn/ui. It isn't using TypeScript but hopefully gives a rough idea of what can be done.

@mathewjordan
Copy link
Author

Thank you @cerimorse! That's very helpful. I might give it a try and see if it works. For context, I'll be using it in a component using an aging and bloated swiper.js based implementation.

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