Beautiful Alert Component with TailwindCSS, Vue & CVA

  Рет қаралды 8,495

cdruc

cdruc

Күн бұрын

Пікірлер: 15
@AddMotionLeb
@AddMotionLeb 2 жыл бұрын
I think someone is in love with this CVA 😊
@VELIXYZ
@VELIXYZ 2 жыл бұрын
This is sooo goood and clean. Thank you!
@dvlden
@dvlden 2 жыл бұрын
I wonder why CVA when we can bind classes as arrays and objects and mixed? I use clsx with React, but nothing in Vue.
@cdruc
@cdruc 2 жыл бұрын
objects & arrays are fine, I just find cva to be more readable - even more so when dealing with multiple props/variants
@codedjango
@codedjango 2 жыл бұрын
We want more components....at the moment I see only this component on variantui
@matheusdesousamenezes514
@matheusdesousamenezes514 Жыл бұрын
Really nice! One question: Is it safe in terms of performance to declare those cva classes as computed properties? On the examples that i saw on the docs, these were declared on the defineProps function, not as computed
@cdruc
@cdruc Жыл бұрын
Yes, it's safe. But if you don't want/need classes to be "recalculated" (I do) when the props change, just use a function like in the library example 👍
@ValentinTzanev
@ValentinTzanev 2 жыл бұрын
Is there a good reason to use function as a prop instead of the custom event for dismiss?
@dvlden
@dvlden 2 жыл бұрын
I think the best practise in Vue is to always use Event emitting.
@cdruc
@cdruc 2 жыл бұрын
there's good reason, can you guess why? 😃
@ValentinTzanev
@ValentinTzanev 2 жыл бұрын
@@cdruc Still wonder! :)
@СергейКиршевский
@СергейКиршевский Жыл бұрын
@@cdruc i think that this way it will be easier to rewrite close button to a slot
@devsystems
@devsystems 10 ай бұрын
where do I find the source code
@iamsomraj
@iamsomraj Жыл бұрын
Hey, can you please the name of your font?
@amalebu
@amalebu 2 жыл бұрын
Yeay! Thank you
Class Variance Authority (CVA) Quickstart
20:54
Coding in Public
Рет қаралды 15 М.
A Better Way To Organize Components In Vue
10:10
Program With Erik
Рет қаралды 26 М.
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 203 М.
Large Tailwind Components - What to do About All Those Classes
25:18
Frontend FYI – by Jeroen
Рет қаралды 36 М.
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 30 М.
They Finally Released This Toast Library
4:39
Josh tried coding
Рет қаралды 94 М.
Laravel SPA Authentication - setup and common mistakes
16:55
Let's create a filter table component in Vue
30:53
Andrew Schmelyun
Рет қаралды 29 М.
Create a Custom Component Library with Vue & Tailwind CSS
24:08
Vue Mastery
Рет қаралды 27 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23