Tailwind CSS is the easiest way to add modern and enhanced designs to our Next.js app without having to write lots of custom CSS code. If you already have a Next.js application, below are step-by-step instructions to set up and use Tailwind. If not,click here to read our getting star...
Functional components in Next.js are executed exactly like regular functions; they return some custom HTML used to render your component. This means any values in the function are initialised when you call the function, resetting them every time your component renders. You can use the useState ...
Tailwind width is a utility that allows you to set the width of an element. To use Tailwind width, you need to add the w- prefix followed by the desired width value to your HTML element class attribute.
How to use Leaflet with Next.js and MapTiler Vector Tiles: this tutorial shows how to install Leaflet from NPM and create a map and display it on a Next.js application.
TailwindCSS for styling. Here are the instructions for setting it up for Next.js . I’m using it because I love utility-first CSS; but you could use literally any styling solution you prefer. Tailwind classes translate quite well because it’s literally just a different way to write...
Tailwind is a "utility-first" concept. Instead of providing ready-to-use components such as buttons, it has low-level utility classes that you can compose to build custom designs. As such, it encourages a more functional approach...
How To Set Up TailwindCSS in Your Next.js App How to set up a GraphQL server with Node.js & Express Set Up Axios Interceptors in your ReactJS Application How to set up ESLint in React How To Set Up Redux in React How To Use Vue With Pinia To Set Up Authentication 👋 Hey, I'...
We will use it to store user credentials. next-auth: Authentication for Next.js. react-hook-form: a library that helps you validate forms in React. zod: a data validator. bcrypt: to hash passwords. shadcn/ui: a collection of reusable components. 3. Create the following struc...
How to solve the `unable to resolve dependency tree` error while installing Tailwind in a Next.js websiteWhile setting up a new Next.js project with Tailwind I ran into an issue.This issue might just be a temporary issue due to configuration problems and libraries versions, but I’m ...
In this blog post, I’ll show you how to create a simple Masonry gallery using Next.js and Cloudinary to host and optimize the images. We’ll also use Tailwind CSS to handle the styling quickly and efficiently, keeping things simple but effective. By the end, you’ll have a neat and ...