Authoring Components with CVA + tailwindcss — Basic Buttons (1 / 4)

Описание к видео Authoring Components with CVA + tailwindcss — Basic Buttons (1 / 4)

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: https://github.com/brookslybrand/cva-...

00:00 Introduction
02:56 Adding CVA
07:39 Creating a Button component
13:16 Examples & final tweaks

Комментарии

Информация по комментариям в разработке