Class Variance Authority (CVA) Quickstart

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

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 37
@CodinginPublic
@CodinginPublic Жыл бұрын
Not exactly sure why I had “px-0” … should have been “p-0”
@pedapudiraviteja7388
@pedapudiraviteja7388 6 ай бұрын
Why is this video so goddamn underrated? Clear and precise explanation for CVA. Keep going ♥.
@CodinginPublic
@CodinginPublic 6 ай бұрын
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 10 ай бұрын
Thank you a lot. Could not donate money. But just wanted to thank you for your endeavor.
@CodinginPublic
@CodinginPublic 9 ай бұрын
Thanks so much, my friend! Really appreciate the kind words!
@zakariabelhadj8673
@zakariabelhadj8673 Жыл бұрын
Let's go!
@DanteMishima
@DanteMishima Жыл бұрын
Here we go!
@senseicodes
@senseicodes Жыл бұрын
Awesome video!
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad you enjoyed it!
@senseicodes
@senseicodes Жыл бұрын
I learnt a lot!@@CodinginPublic
@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.
@weihyac
@weihyac 6 ай бұрын
Thank you
@CodinginPublic
@CodinginPublic 6 ай бұрын
You're welcome
@elenamikhaylova5086
@elenamikhaylova5086 10 ай бұрын
good video, thanks!
@CodinginPublic
@CodinginPublic 10 ай бұрын
You're welcome!
@kelvinpraises
@kelvinpraises 7 ай бұрын
Thanks!!!
@CodinginPublic
@CodinginPublic 7 ай бұрын
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?
@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 9 ай бұрын
Hi, can i use this library for javascript?
@CodinginPublic
@CodinginPublic 9 ай бұрын
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.
@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 😄.
Authoring Components with CVA + tailwindcss - Basic Buttons (1 / 4)
17:04
React Tips with Brooks Lybrand
Рет қаралды 3 М.
My Favorite Tailwind Tools
11:51
Coding in Public
Рет қаралды 24 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 39 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 18 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 26 МЛН
Translating a Custom Design System to Tailwind CSS
10:10
Tailwind Labs
Рет қаралды 125 М.
Large Tailwind Components - What to do About All Those Classes
25:18
Frontend FYI – by Jeroen
Рет қаралды 36 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 105 МЛН
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 197 М.
Astro 5.0 Crash Course
28:09
Coding in Public
Рет қаралды 861
shadcn/ui - Theming Wrapped in a Tailwind Plugin/Preset
30:14
simonswiss
Рет қаралды 50 М.
cn() - Every Tailwind Coder Needs It (clsx + twMerge)
7:46
ByteGrad
Рет қаралды 134 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 39 МЛН