Keep React 是基于 Tailwind CSS 和 React.js 构建的开源组件库。它提供了一组预先设计的通用 UI 组件,用于构建现代 Web 应用程序。
Keep React 是基于 Tailwind CSS 和 React.js 构建的开源组件库。它提供了一组预先设计的通用 UI 组件,用于构建现代 Web 应用程序。
Keep React 是基于 Tailwind CSS 和 React.js 开发的开源组件库。它提供了一组预先设计的通用 UI 组件,可帮助开发人员简化现代、响应式和具有视觉吸引力的 Web 应用程序的开发。
在 Vite React 应用中设置 Keep React 步骤 1: 创建 Vite React 应用 console npm create vite@latest my-project -- --template react cd my-project 步骤 2: 安装 Tailwind CSS console npm i autoprefixer postcss tailwindcss npx tailwindcss init -p 步骤 3: 安装 Keep React: console npm i keep-react phosphor-react 或使用 Yarn console yarn add keep-react phosphor-react 或使用 Pnpm console pnpm add keep-react phosphor-react 步骤 4: 前往 tailwind.config.js 文件并粘贴以下代码: ```jsx
import { keepTheme } from 'keep-react/keepTheme'
const config = { content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], theme: {}, }
export default keepTheme(config)
`步骤 5: `将 Tailwind CSS 添加到 index.css 文件中:css
@import 'keep-react/css';
@tailwind base;
@tailwind components;
@tailwind utilities;
## Next JS 应用程序 你可以轻松将 `keep-React` 集成到你的 Next.js 应用程序中。 `步骤 1: `安装 Next Js 应用程序console
npx create-next-app@latest
``` 确保在设置过程中选择 tailwindcss 作为应用程序的依赖项。 是否要使用 Tailwind CSS? -- 是的 步骤 2: 安装 Keep React
npm i keep-react phosphor-react
``` 或使用 Yarn暂无开放 Issues,或尚未同步最近议题。