0.2.2 • Published 3 years ago
tailprops-next v0.2.2
tailprops-next
tailprops-next is the Next.js integration for the Tailprops library.
Installation
Install Tailprops and the Next wrapper as dev dependencies:
npm install -D tailprops tailprops-nextThen, wrap your config in your next.config.js:
// next.config.js
const { withTailprops } = require("tailprops-next"); // Import tailprops plugin
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};
module.exports = withTailprops(nextConfig); // Wrap your config in withTailpropsLastly, add typings and the Tailwind transform by running:
npx tailprops init reactLooking for an example? This docs website is a Next 13 app using Tailprops. Check out the source code on GitHub.