News for hackers. Stuff that matters.
Re:Tailwind UI by Luc93 on Wednesday February 26, 2020 @05:31PM (#22428151)
I'd imagine a reusable React component something like:

<Alert type="danger"> Are you sure? </Alert>

Of course this solution would work in other templating engines as well.

The alternative would be extracting css components:

.alert { @apply px-4 py-3 ... }

.alert-danger { @apply bg-red-100 .. }

There are no comments on this comment yet.