
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 8 Articles for NextJS

97 Views
When using Tailwind CSS in a Next.js project, it's common to apply utility classes for styling. However, if you're using CSS Modules, it can be difficult because the styles are scoped locally. The @apply directive in Tailwind allows you to combine multiple utility classes into one rule, making it easier to use Tailwind with CSS Modules. Our goal is to show you how to set up Tailwind CSS with CSS Modules in a Next.js project and use the @apply directive properly. Approaches Here, we will cover two approaches for using Tailwind's @apply inside CSS Modules in a Next.js project. ... Read More

23 Views
When working with Next.js, the Image component offers features like optimization, responsive sizing, and lazy loading for better performance. However, styling these images with Tailwind CSS while keeping the code clean and ensuring image optimization works can be challenging. Our goal is to show the best ways to use Tailwind CSS with the Next.js Image component for better performance and design. We'll go through a few examples to show how to style and optimize images using Tailwind and Next.js. Setting Up Tailwind CSS with Next.js To get started, you first need to install Tailwind CSS in your Next.js ... Read More

7K+ Views
Material-UI is a popular React-based UI library that provides a wide2 range of UI components and design elements. Next.js is a React-based framework for building server-side rendered (SSR) and statically exported web applications. In this tutorial, we will learn how to use Material-UI with Next.js to create a user-friendly, modern and responsive user interface. Steps to integrate Material-UI with Next.js Users can follow the steps below to use Material-UI with NextJS. Step 1 − Start by creating a new Next.js project using the following command − npx create-next-app my-app Step 2 − Navigate to the newly created project ... Read More

2K+ Views
Emojis have become an essential part of modern communication. In this tutorial, we will learn how to create an emoji picker in NextJS, a popular React-based framework for building server-rendered applications An emoji picker is a UI component that displays a collection of emojis and allows users to select one or more emojis for use in their text. A well-designed emoji picker can improve the user experience and increase engagement on your site. In this tutorial, we will create an emoji picker that displays a grid of emojis and updates the selected emoji in the state. Steps to create ... Read More

10K+ Views
We can add a stylesheet in Next.js by creating a CSS file in the "pages" directory and importing it in the desired component. We can also use CSS-in-JS libraries like styled-jsx for styling in Next.js. It is important to note that the styles will only be scoped to the component they are imported in and will not affect the global styles. Let us first learn what Next.js is. Next.js is an open-source web development framework. The Next.js is React Based framework with server side rendering capability. Both speed and SEO are excellent. You can simply build and test sophisticated react-based ... Read More

3K+ Views
We can add a star rating feature in NextJS by using a library such as react-star-rating. This library allows us to easily display a star rating system and allows for customization of the number of stars and the ability to handle user interactions.Next.js is an open-source web development framework. The Next.js is React Based framework with server side rendering capability. Both speed and SEO are excellent. You can simply build and test sophisticated react-based applications using Next.js. Next.js is written in Typescripts. It offers a Link component that links other components together and has a prefetch property that allows for ... Read More

6K+ Views
We can use conditional rendering to only display the spinner when certain conditions are met, such as when data is being fetched from an API. Additionally, we can use CSS to style the spinner and make it match the overall design of our website. What is NextJS? Next.js is a JavaScript framework for building server-rendered React applications. It provides a set of features and tools that make it easy to build and deploy high-performance web applications, such as automatic code splitting, server-side rendering, and static site generation. Next.js also simplifies the setup process and provides a development environment that allows ... Read More

16K+ Views
We can add a Popup in NextJS by using a library such as react-modal or reactjs-popup. This will allow us to create a modal component that can be easily integrated into our NextJS application. We can also use CSS to style the popup to match the design of our website. Let us first learn what Next.js is. Next.js is an open-source web development framework. The Next.js is React Based framework with server side rendering capability. Both speed and SEO are excellent. You can simply build and test sophisticated react-based applications using Next.js. Next.js is written in Typescripts. It offers a ... Read More