项目搭建
1、 官方建议使用 create-next-app 启动一个新的 Next.js 应用程序:
npx create-next-app@latest
2、 安装时,你将看到以下提示:
What...,.ts] // Page 页
loading[.js,.jsx,.ts] // Loading UI 加载 UI
not-found[.js,.jsx,.ts] // Not found UI 未找到...UI
error[.js,.jsx,.ts] // Error UI 错误 UI
global-error[.js,.jsx,.ts] // Global error UI 全局错误 UI
route...,tsx}',
],
theme: {
extend: {}
},
plugins: [nextui()],
};
export default config;
4、...在根节点添加 NextUIProvider
import '.