Get Started
Installing and setting up required components
Install Next Js
Create a new project
On installation You'll see these prompts
Start the development server
Install ShadCN
For Next Js
Create project
Run the init
command to create a new Next.js project or to setup an existing one:
You can use the -d
flag for defaults i.e new-york
, zinc
and yes
for the css variables.
You will be asked a few questions to configure components.json
:
You can now start adding components to your project.
The command above will add the Button
component to your project. You can then import it like this:
Create utils.tsx
Create a new file
Create a new file named utils.tsx
in the lib
folder of your project.
Add the following code to
utils.tsx
Install Framer Motion
Installation
Usage
Other libraries
React Icons
Usage
Canvas Confetti
Usage
Edit on GitHub
Last updated on