This is a Next.js project bootstrapped with create-next-app
.
- 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
- Re-usable components built using Radix UI and Tailwind CSS
- Follow the manual installation guide
to add to your project
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" />;
- 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
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.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.