This is a Next.js project bootstrapped with create-next-app.

Ref

youtube

UI - Shadcn, Lucide React, Tailwind-CSS

Shadcn

  • Shadcn is not a npm package as of now.
  • It's a collection of re-usable components that you can copy and paste into your apps.
  • The creator wants us to have ownership of the code, so only need to copy the component we need.
  • Uses shadcn - Re-usable components built using Radix UI and Tailwind CSS
  • Follow the manual installation guide here to add to your project

CLI to Add Components

To add a shadcn component, simply run:

npx shadcn-ui add <component_name>
npx shadcn-ui add skeleton

This will auto add the <component_name>.tsx file under components\ui directory. Then just import and use the component:

import { Skeleton } from "@/components/ui/skeleton";
<Skeleton className="w-[100px] h-[20px] rounded-full" />;

Lucide React

  • an open-source icon library that provides 1000+ vector (svg) files for displaying icons and symbols
  • Lucide contains icons with different variants and states
  • Lucide uses SVG compression and specific code architecture for tree-shaking abilities.
  • After tree-shaking, you only ship the icons you used, which helps to keep software distribution size to a minimum.
  • See Documentation

Getting Started

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.