Justd Blocks Docs: Next.js
Learn how to integrate Justd Blocks into your Next.js projects to build high-performance, server-rendered, and statically generated applications effortlessly.
Installation
The installation process is straightforward and easy to follow. Just follow the steps below to get started:
1Initial setup
Run the following command in your terminal:
By executing this command, you'll be guided through selecting the framework you wish to use. Justd Blocks supports Laravel, Next.js, Remix, and Vite.
Because this is a Next.js, you'll need to specify the type of Next.js project you want, such as whether to include a src
folder. You'll also need to select the Tailwind CSS version. Since Tailwind v4 is required, make sure to select yes
to proceed.
If everything is set up correctly, you'll see something like this:
2File and Folder
Once the installation is complete, your project structure will include folders like components/ui
, utils
, and a justd.json
file.
3Providers
Inside the components
folder, you'll find providers.tsx
and theme-provider.tsx
files.
To use the provider, import it into your layout.tsx
file.
4Done
You're now ready to start creating your blocks.
Next.js
If you’d like to explore the Justd Starter Kit, visit the GitHub repository at justdlabs/next.js. This repository provides a fully functional Next.js project with Justd pre-installed and configured, complete with a variety of components and utilities.