Build Your UI Component Library in React & Next.js | ShadCN UI for Beginners

  Рет қаралды 20,446

Dave Gray

Dave Gray

Күн бұрын

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Build your UI Component Library in React & Next.js with this ShadCN UI for Beginners tutorial. Shadcn ui is a collection of re-usable components that you can use as a reference to build your own component library.
💖 Support me on Patreon ➜ / davegray
⭐ Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegray.codes/
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
🔗 Source Code Example: github.com/gitdagray/shadcn-u...
🔗 My Next.js Videos: • Next.js Tutorials for ...
👇 Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
Build Your UI Component Library in React & Next.js | ShadCN UI for Beginners
(00:00) Intro
(00:11) Welcome
(00:34) What is shadcn/ui?
(02:04) Suggested Prerequisites
(02:50) Installing shadcn/ui
(07:57) Adding Your First Component
(13:45) Quick View of Dark Mode
(14:47) Building a Custom Component
📚 Tutorial References:
🔗 shadcn/ui: ui.shadcn.com/
🔗 Next.js: nextjs.org
🔗 Next.js Light & Dark Modes: www.davegray.codes/posts/ligh...
Was this tutorial about building your own UI component library with shadcn/ui helpful? If so, please share. Let me know your thoughts in the comments.
#shadcn #ui #component

Пікірлер: 45
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
*NOTE:* Next.js just introduced version 14.2 overnight and it is broken. Instead of installing "latest", for now, I recommend version 14.1.4. Modify the install line you see in the tutorial by replacing "latest" with 14.1.4: npx create-next-app@14.1.4 my-app --typescript --tailwind --eslint
@sweatypotato248
@sweatypotato248 Ай бұрын
Thankyou
@p4programing452
@p4programing452 Ай бұрын
Thanks
@AyushmaansinghxX
@AyushmaansinghxX Ай бұрын
Thanks! I was stuck since this morning with a build error in the new version.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
@@AyushmaansinghxX Yes I wasted some time on it myself.
@p4programing452
@p4programing452 Ай бұрын
I was stucked i was trying to reinstall many time
@FalioV
@FalioV 22 күн бұрын
For the past year for me became like a ritual to watch you early in the weekends (since I have no time trough out of the week :D). And you always give me something new to look at or another point of view that is priceless. Thank you for your work and keep it up ! :)
@kumargupta7149
@kumargupta7149 Ай бұрын
Thanks for it! Dave. More on other library as well
@togya4
@togya4 Ай бұрын
Combining shadcn ui & daysi ui is just 🔥🔥👌🏿
@AndreaBarghigiani
@AndreaBarghigiani Ай бұрын
Hi Dave, great video as usual and thank you for publishing so much quality content. You know what could be a great idea for the next video? A course where you teach us how to leverage the ShadCN UI library by building our own library. I've been wrapping my head around the replication of the amazing CLI that this library provide us. It could be great to have the ability to install our own components with our own CLI tool 😅
@chouaibdjerdi9092
@chouaibdjerdi9092 Ай бұрын
Loved the video I think we need to see more videos about ShadcnUI on KZbin
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
There are so many good components here. I can do more in the future too 🚀
@TravinskiyVladislav
@TravinskiyVladislav Ай бұрын
❤ thank you Dave, again. Like always
@bnssoftware3292
@bnssoftware3292 Ай бұрын
Love your style. Subscribed.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
Welcome aboard!
@samadams4751
@samadams4751 Ай бұрын
Thank you very much Coach Dave, Shadcn Amazing anther great tutorial. Big hugs coach, love it🙏
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
Glad you enjoyed it!
@MouseCodes
@MouseCodes Ай бұрын
Can we get an advanced guide on design systems and component libraries where you address topics like testing, storybook and playwright?
@johnforeverrules
@johnforeverrules Ай бұрын
thanks a lot dave
@hakuna_matata_hakuna
@hakuna_matata_hakuna Ай бұрын
parkui bettre and more cohesive and cross framework , try showing sonner toast nside a dialog in shadcn
@rajfekar1514
@rajfekar1514 Ай бұрын
Please explain shadcn datatable with search ,filter with drizzle or prima or api data
@riccardopellegrino5447
@riccardopellegrino5447 29 күн бұрын
Hi @DaveGrayTeachesCode, super interesting content! I have a question: If you just need to give styling to the components, would you keep this approach of creating a new component which uses the shad component inside? Or would you override the shad component with new variants? (or edit current variants?)
@DaveGrayTeachesCode
@DaveGrayTeachesCode 29 күн бұрын
If you only needed a button, you would just override anything you wanted to change about the button. If you want to add additional features, then you would create your own component.
@piotrszymanski8325
@piotrszymanski8325 29 күн бұрын
Great vid, but i think that everybody who is looking for this type of content, already knows how to create a component made from others component and use it as a whole and it would be nice to show how to handle passing all the props like onChange, value etc... to that custom component which will be forwarded to initial text input - this is more usefull i think.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 29 күн бұрын
That could make a good follow up. I have discovered as a teacher, I cannot assume everyone already knows how to do anything though.
@shubhamupadhyay3174
@shubhamupadhyay3174 Ай бұрын
I just completed django so can you please make a project with django and react
@BrajagopalMukherjee
@BrajagopalMukherjee Ай бұрын
Hi Dave ,started with Shadcn ui ,Can we expect Reactjs revised tutotial ?any full stack project as u have covered Backend also (me also from your help)?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
I am about due to create another React full course.
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd Ай бұрын
THank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
You're welcome!
@nasarullahkhan3379
@nasarullahkhan3379 Ай бұрын
In react 19 forwardRef will not work. But Shadcn used forwardRef about in all components.
@dreamecho100
@dreamecho100 Ай бұрын
Wait, I thought it will be *not needed*, not it will be removed completely, at least for now
@piotrszymanski8325
@piotrszymanski8325 29 күн бұрын
Sure, u right, but making components in react seems like obvious. The follow up would be highly appreciated. :)
@saitulasi4592
@saitulasi4592 29 күн бұрын
Sir , why haven't you added angular tutorial?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 29 күн бұрын
There is only so much time in a given day or week. I create free content for KZbin but I also have a full-time job and other obligations.
@creatorsremose
@creatorsremose 29 күн бұрын
It essentially IS a component library with extra steps... meaning that if there's a new version that introduces important features or improvements, good luck upgrading. Seems like a weird hype to me.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 28 күн бұрын
YMMV but many find it very useful.
@herway1875
@herway1875 Ай бұрын
👍🏻
@DanteMishima
@DanteMishima Ай бұрын
Shadcn.... Yeah, I'm never using it.
@Joseph-Codes
@Joseph-Codes 29 күн бұрын
The video title is clickbait what the title says and what he did doesn't align
@DaveGrayTeachesCode
@DaveGrayTeachesCode 29 күн бұрын
Disagree. I highlighted the fact that the shadcn docs say it is to be used as a reference to build your own component library. The title also says ShadCN UI for Beginners and I cover how to get started well. I also show how to build a custom component using a ShadCN component. You need to build your own component library from there.
Your Developer Portfolio NEEDS a Project like THIS
17:37
Dave Gray
Рет қаралды 24 М.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Рет қаралды 9 МЛН
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 3,3 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 166 М.
[CHI 2024] MELDER: A Real-time Silent Speech Recognizer for Mobile Devices
2:25
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 533 М.
The BEST way to host Next.js websites
17:37
ByteGrad
Рет қаралды 18 М.
Don't Make These Next.js Mistakes
13:01
Dave Gray
Рет қаралды 20 М.
Next.js Image - Never struggle again (+ ImageKit)
36:01
ByteGrad
Рет қаралды 14 М.
My thoughts on the Next.js "App Router" & what I (don't) like about it
11:58
Maximilian Schwarzmüller
Рет қаралды 9 М.
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 31 М.
GPT-4o - Full Breakdown + Bonus Details
18:43
AI Explained
Рет қаралды 255 М.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28