-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-shadcn.txt
64 lines (42 loc) · 1.14 KB
/
next-shadcn.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--------------setup in next js -----------
npx create-next-app@latest next-shadcn
pnpm dlx shadcn@latest init
pnpm dlx shadcn@latest add button
pnpm create next-app@latest project-shad
npx shadcn@latest init
npx shadcn@latest add button
--------------setup in vite -----------
pnpm create vite@latest
pnpm add -D tailwindcss postcss autoprefixer
pnpm dlx tailwindcss init -p
pnpm add -D @types/node
pnpm dlx shadcn@latest init
pnpm dlx shadcn@latest add button
npm create vite@latest
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
npm install -D @types/node
npx shadcn@latest init
npx shadcn@latest add button
import { Button } from "@/components/ui/button"
<Button>Click me</Button>
src/index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
tailwind.config.js
content: ["./index.html", "./src/**/*.{ts,tsx,js,jsx}"],
tsconfig.json
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
tsconfig.app.json
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}