Go to file
2023-08-21 17:11:33 +08:00
components/icons feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00
pages feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00
public Initial commit from Create Next App 2023-08-21 16:14:04 +08:00
.eslintrc.json Initial commit from Create Next App 2023-08-21 16:14:04 +08:00
.gitignore Initial commit from Create Next App 2023-08-21 16:14:04 +08:00
next.config.js Initial commit from Create Next App 2023-08-21 16:14:04 +08:00
package.json feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00
postcss.config.js Initial commit from Create Next App 2023-08-21 16:14:04 +08:00
README.md feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00
tailwind.config.ts feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00
tsconfig.json feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00
yarn.lock feat: init project && add useOnClickOutside demo 2023-08-21 17:11:33 +08:00

NextJs + NextUI

  1. 为什么 pages/* 添加NextUI后无效

后来发现,在pages/*中使用tailwind也无效原来原因是没有在css文件中引入tailwind

添加 globals.css 文件,在_app.tsx中导入

@tailwind base;
@tailwind components;
@tailwind utilities;