How to use a provider like a ThemeProvider
I am trying to set up shadcn ui with tanstack stack to play and understand about the technology. The setup is almost ready other then the dark theme which uses a provider component. I went through documentation and the attached GitHub repo from the website but I didn't found a good solution. So I am wondering now how to do this.
3 Replies
rival-black•10mo ago
you put that provider in the root route component
rival-black•10mo ago
GitHub
tanstack-boilerplate/src/routes/__root.tsx at main · nekochan0122/t...
A fully type-safe boilerplate with a focus on UX and DX, complete with multiple examples. - nekochan0122/tanstack-boilerplate
rival-black•10mo ago
from @Aaron