Skip to content

Commit 8544952

Browse files
authored
docs: update Getting Started->Next.js for Next 13+ (#1185)
Leave a note about older versions for users running them. resolve #1158
1 parent e1bc5e3 commit 8544952

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

content/docs/getting-started/nextjs.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ module.exports = {
3030
3. Create `tailwind.config.js`:
3131

3232
```javascript
33-
/**
34-
* @type {import('@types/tailwindcss/tailwind-config').TailwindConfig}
35-
*/
33+
/** @type {import('@types/tailwindcss/tailwind-config').TailwindConfig} */
3634
module.exports = {
37-
content: ['./node_modules/flowbite-react/**/*.js', './pages/**/*.{ts,tsx}', './public/**/*.html'],
35+
// note: if using Next.js 12 or earlier, you'll want to include ./pages/ instead of ./app/
36+
content: ['./app/**/*.{ts,tsx}', './node_modules/flowbite-react/lib/**/*.js'],
3837
plugins: [require('flowbite/plugin')],
39-
theme: {},
38+
// ...
4039
};
4140
```
4241

@@ -51,6 +50,8 @@ module.exports = {
5150
5. Start using `flowbite-react`!
5251

5352
```jsx
53+
'use client';
54+
5455
import { Alert } from 'flowbite-react';
5556

5657
export default function MyPage() {

0 commit comments

Comments
 (0)