Skip to content

Commit

Permalink
docs: update Getting Started->Next.js for Next 13+ (#1185)
Browse files Browse the repository at this point in the history
Leave a note about older versions for users running them.

resolve #1158
  • Loading branch information
tulup-conner authored Dec 12, 2023
1 parent e1bc5e3 commit 8544952
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions content/docs/getting-started/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ module.exports = {
3. Create `tailwind.config.js`:

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

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

```jsx
'use client';

import { Alert } from 'flowbite-react';

export default function MyPage() {
Expand Down

1 comment on commit 8544952

@vercel
Copy link

@vercel vercel bot commented on 8544952 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.