Class Variance Authority (CVA) Quickstart

  Рет қаралды 15,728

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 37
@CodinginPublic
@CodinginPublic Жыл бұрын
Not exactly sure why I had “px-0” … should have been “p-0”
@pedapudiraviteja7388
@pedapudiraviteja7388 7 ай бұрын
Why is this video so goddamn underrated? Clear and precise explanation for CVA. Keep going ♥.
@CodinginPublic
@CodinginPublic 7 ай бұрын
Thanks, my friend. Glad it was a help!
@andrewc8125
@andrewc8125 Жыл бұрын
Started using cva like a month ago. It just changed my dev life. Especially great with server component. Awesome content!
@CodinginPublic
@CodinginPublic Жыл бұрын
It really is a sneaky-amazing tool!
@starlord7526
@starlord7526 Жыл бұрын
what do you mean by server component? Is it the one mentioned along with Next?
@CodinginPublic
@CodinginPublic Жыл бұрын
@@starlord7526 Server side rendering I think is his point. The server can render the route as it’s hit.
@bobdpa
@bobdpa Жыл бұрын
Awesome video and thanks so much for the finished code!
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad you enjoyed it!
@MRYesaga
@MRYesaga Жыл бұрын
Thank you a lot. Could not donate money. But just wanted to thank you for your endeavor.
@CodinginPublic
@CodinginPublic 11 ай бұрын
Thanks so much, my friend! Really appreciate the kind words!
@martinadrianenghoy9937
@martinadrianenghoy9937 Жыл бұрын
Thanks for the awesome video, Chris, as always! Would also like to ask if you're looking to setup possibly a Discord server in the near future? Would definitely love a community for your channel! 💖
@CodinginPublic
@CodinginPublic Жыл бұрын
Thanks! Glad you enjoyed it! I’ve considered it; just not sure how many would be interested? Let me throw a poll up.
@senseicodes
@senseicodes Жыл бұрын
Awesome video!
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad you enjoyed it!
@senseicodes
@senseicodes Жыл бұрын
I learnt a lot!@@CodinginPublic
@DanteMishima
@DanteMishima Жыл бұрын
Here we go!
@zakariabelhadj8673
@zakariabelhadj8673 Жыл бұрын
Let's go!
@elenamikhaylova5086
@elenamikhaylova5086 Жыл бұрын
good video, thanks!
@CodinginPublic
@CodinginPublic Жыл бұрын
You're welcome!
@weihyac
@weihyac 8 ай бұрын
Thank you
@CodinginPublic
@CodinginPublic 8 ай бұрын
You're welcome
@kelvinpraises
@kelvinpraises 9 ай бұрын
Thanks!!!
@CodinginPublic
@CodinginPublic 9 ай бұрын
You’re welcome!
@rafeeqshaik7355
@rafeeqshaik7355 Жыл бұрын
How to style child components, which does not inherit styles or in React native using native wind library. When creating a button or a card, the children does not inherit parent styles.
@CodinginPublic
@CodinginPublic Жыл бұрын
I’d just style them directly when you write the child components. Or maybe I’m misunderstanding?
@PhuocNguyen-zp5jm
@PhuocNguyen-zp5jm Жыл бұрын
First argument of cva is not suggest type of tailwind, className (like className in div prop) Anyone can help me this case, pls ? tks
@CodinginPublic
@CodinginPublic Жыл бұрын
Just need to update your VSCode settings as shown here: cva.style/docs/getting-started/installation#intellisense Let me know if that doesn’t help.
@PhuocNguyen-zp5jm
@PhuocNguyen-zp5jm Жыл бұрын
@@CodinginPublic Ohh tks you, this is my mistake, its work. But i got new issue when i use "var" like this (data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)]) in cva, this suggest will not working -_- . I'm still figuring out and fix this Using : shadcn UI If you any solotion for this, pls tell me Tks for your help 🤗
@CodinginPublic
@CodinginPublic Жыл бұрын
Ah! I don't have a solution, but I'm sure there is one! The underscores don't help for the spaces?@@PhuocNguyen-zp5jm
@PhuocNguyen-zp5jm
@PhuocNguyen-zp5jm Жыл бұрын
@@CodinginPublic Ahh, i think regex setting cva json is missing for "var" , i just remove "var" and sugg will be showing Yep, i forgot tailwind will automatically add "var(...)" in final value when we use double underscores in "arbitrary values" data-[swipe=end]:translate-x-[- -radix-toast-swipe-end-x]. All goods, for now 🤣. Thanks for your time, have a good day 😄.
@TytusDubel
@TytusDubel Жыл бұрын
Hi Chris, any news on your Astro Course?
@CodinginPublic
@CodinginPublic Жыл бұрын
Hoping to do an early release before the end of the year.
@yudhapmksss
@yudhapmksss 11 ай бұрын
Hi, can i use this library for javascript?
@CodinginPublic
@CodinginPublic 11 ай бұрын
I think so? It's just strings, so you should be able to process anything if you just want strings?
@ardhikaryzha317
@ardhikaryzha317 Жыл бұрын
how to add color?
@CodinginPublic
@CodinginPublic Жыл бұрын
I'd just add another option like “style” or something like that next to varient/intent, size, etc. Then you can reference that option when invoking the button.
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 204 М.
cn() - Every Tailwind Coder Needs It (clsx + twMerge)
7:46
ByteGrad
Рет қаралды 139 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 209 М.
A flexbox trick to improve text wrapping
5:02
Kevin Powell
Рет қаралды 229 М.
Translating a Custom Design System to Tailwind CSS
10:10
Tailwind Labs
Рет қаралды 128 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 499 М.
Large Tailwind Components - What to do About All Those Classes
25:18
Frontend FYI – by Jeroen
Рет қаралды 36 М.
Tailwind-Merge Is Incredibly Useful - And Here's Why!
12:58
simonswiss
Рет қаралды 38 М.
Astro Blog Course #5 - Astro Components
21:37
Coding in Public
Рет қаралды 13 М.
Creating a Flexible Astro Component
37:15
Coding in Public
Рет қаралды 12 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 205 М.