Skip to content

Commit

Permalink
docs: add nuxt usage
Browse files Browse the repository at this point in the history
  • Loading branch information
motea927 committed May 31, 2024
1 parent 44d4225 commit 1f8fc57
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,37 @@ export default defineConfig({
})
```

Example: [`playground/`](./playground/)
<br></details>

<details>
<summary>Nuxt</summary><br>

```ts
// nuxt.config.ts
export default defineNuxtConfig({
modules: [
[
'unplugin-overlay-layout/nuxt',
{
layoutPreview: {
style: {
position: 'absolute',
margin: 'auto',
inset: '0',
width: '13.34rem',
height: '7.5rem'
},
imageUrl: 'https://picsum.photos/200/300'
}
}
]
]
})

```
<br></details>


## Configuration

Options: [`Options/`](./src/types.ts)
Expand Down

0 comments on commit 1f8fc57

Please sign in to comment.