Installation
Setting up Preline UI in a Next.js project using Tailwind CSS.
Production grade React applications that scale.
Install preline
via npm or yarn.
// Terminal or Shellnpm install preline // or yarn add preline
Add the path to Preline UI JavaScript files in your tailwind.config.js
file.
// tailwind.config.jsmodule.exports = { content: [ 'node_modules/preline/dist/*.js', ], plugins: [ require('preline/plugin'), ],}
Add the Preline UI JavaScript in your app entry point _app.js
// _app.js...useEffect(() => {
import('preline')
}, [])...