2024-05-27 19:18:44 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
2024-05-28 06:18:34 +00:00
|
|
|
Tailwind CSS is a popular CSS framework based on a utility-first design. The core provides flexible CSS classes with predefined CSS rules to build your own UI elements. For example, instead of an opinionated <i>btn</i> class as in
|
2024-05-27 19:18:44 +00:00
|
|
|
Bootstrap, Tailwind offers primitive classes like <i>bg-blue-500</i>, <i>rounded</i> and <i>p-4</i> to apply a button. A set of reusable classes can also be grouped as a Tailwind CSS component and there are even a couple of libraries that
|
2024-05-28 06:18:34 +00:00
|
|
|
take this approach to build components specifically for Tailwind.
|
2024-05-27 19:18:44 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2024-05-28 06:18:34 +00:00
|
|
|
Tailwind is an outstanding CSS library, however it lacks a true comprehensive UI suite when combined with Vue.js, this is where PrimeVue comes in by providing a wide range of highly accessible and feature rich UI component library. The
|
2024-10-29 10:42:31 +00:00
|
|
|
core of PrimeVue does not depend on Tailwind CSS, instead we provide the necessary integration points such as the primeui tailwind plugin and the Tailwind version for the unstyled mode.
|
2024-05-27 19:18:44 +00:00
|
|
|
</p>
|
|
|
|
</DocSectionText>
|
2024-10-29 10:42:31 +00:00
|
|
|
<div class="doc-notification">
|
|
|
|
Tailwind CSS and PrimeVue can be used together via two main approaches. Simple approach is using Tailwind CSS <b>around</b> PrimeVue components for layout purposes as demonstrated in the samples section below, the advanced approach takes the
|
|
|
|
integration a step further by allowing Tailwind CSS <b>within</b> the component internals to style the entire UI suite in <NuxtLink to="/theming/unstyled" class="doc-link">unstyled mode</NuxtLink>.
|
|
|
|
</div>
|
2024-05-27 19:18:44 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script></script>
|