-
But of course, it is a button, so it could have multiple variants: primary and secondary(you can increase the number of customizable params, but we will limit it to 1, variant). To implement this you can use any library for combining classnames, for example, classnames, clsx. Let’s use the classic one, "classnames".
-
Civic Auth
Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
-
shadcn/ui
A set of beautifully-designed, accessible components and a code distribution platform. Works with your favorite frameworks. Open Source. Open Code.
Examples: radix-ui, chakra-ui, shadcn/ui, tailwind-ui.
-
Since Tailwind is a PostCSS plugin, we can also add cssnano plugin to compress the bundle.
-
Examples: radix-ui, chakra-ui, shadcn/ui, tailwind-ui.