Install Tailwind-Elements

After setting up the basic tailwind install (TKTKTKT - details on tailwind install)

npm install tw-elements

Add these to tailwind.config.js

module.exports = {
  content: ['./node_modules/tw-elements/dist/js/**/*.js'],
  plugins: [

Copy the index.min.js file to where you can get to it:

from the site root:

cp node_modules/tw-elements/dist/js/index.min.js public/

On the page:

import Script from 'next/script'

return (
<Script src="/index.min.js" />
<div>other page stuff</div>