From d56297c8fb1adb9e991e59ca7d1483b1d4e0cd21 Mon Sep 17 00:00:00 2001 From: habubey Date: Tue, 10 Oct 2023 17:35:41 +0300 Subject: [PATCH] Updated tailwind docs --- .../doc/tailwind/unstyledmode/setupdoc.js | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/components/doc/tailwind/unstyledmode/setupdoc.js b/components/doc/tailwind/unstyledmode/setupdoc.js index 5b7e2069ca..5001fafd84 100644 --- a/components/doc/tailwind/unstyledmode/setupdoc.js +++ b/components/doc/tailwind/unstyledmode/setupdoc.js @@ -7,22 +7,24 @@ export function SetupDoc(props) { basic: ` module.exports = { content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", - ], - darkMode: ["class"], - theme: { - extend: {}, - }, - plugins: [], - }; + "./app/**/*.{js,ts,jsx,tsx,mdx}", + "./pages/**/*.{js,ts,jsx,tsx,mdx}", + "./components/**/*.{js,ts,jsx,tsx,mdx}", + + // Or if using \`\src\` directory: + "./src/**/*.{js,ts,jsx,tsx,mdx}", + ], + darkMode: "class", + theme: { + extend: {}, + }, + plugins: [], + } ` }; const code2 = { basic: ` import { PrimeReactProvider } from "primereact/api"; -import Tailwind from "primereact/passthrough/tailwind"; ... return( @@ -37,7 +39,6 @@ return( const code3 = { basic: ` import { PrimeReactProvider } from "primereact/api"; -import Tailwind from "primereact/passthrough/tailwind"; export default function MyApp({ Component }) {