CVA (class-variance-authority) is an incredibly simple, yet powerful library for creating typed variants out of regular ol' css classes. This series walks through how to leverage CVA with tailwindcss to author a Button component in React.
In this video we go over the project, start leveraging CVA for simple variants, and create a Button component that takes a couple of simple props.
Feel free to follow along or checkout the code for yourself: github.com/bro...
00:00 Introduction
02:56 Adding CVA
07:39 Creating a Button component
13:16 Examples & final tweaks
Негізгі бет Authoring Components with CVA + tailwindcss - Basic Buttons (1 / 4)
No video
Пікірлер: 2