Skip to content

Commit

Permalink
chore(docs): update laravel.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
sudongyuer committed Dec 23, 2024
1 parent 0c988af commit 4ae4d77
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions apps/docs/content/docs/frameworks/laravel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Vite
description: How to use Laravel with Vite
title: Laravel
description: How to use NextUI with Laravel
---

# Vite
# Laravel

Requirements:

Expand Down Expand Up @@ -80,7 +80,7 @@ After installing NextUI, you need to set up the `NextUIProvider` at the `root` o

Go to the src directory and inside `app.jsx` or `app.tsx`, wrap `NextUIProvider` around App:

```jsx {8,22}
```jsx {8,23,25}
// app.tsx or app.jsx
import '../css/app.css';
import './bootstrap';
Expand All @@ -102,7 +102,11 @@ createInertiaApp({
setup({ el, App, props }) {
const root = createRoot(el);

root.render(<NextUIProvider><App {...props} /></NextUIProvider>);
root.render(
<NextUIProvider>
<App {...props} />
</NextUIProvider>
);
},
progress: {
color: '#4B5563',
Expand Down

0 comments on commit 4ae4d77

Please sign in to comment.