Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
P4sca1 authored Sep 10, 2024
1 parent 9c59934 commit 42b6391
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ npx nuxi@latest module add headlessui

3. Add the following lines to your `app.vue` file inside `<script setup>`:

> [!NOTE]
> This is only needed if you use versions prior to `[email protected]` or `@headlessui/[email protected]`. More recent versions use the native `useId` composable provided by Vue.
```ts
// Use SSR-safe IDs for Headless UI
provideHeadlessUseId(() => useId())
Expand Down

0 comments on commit 42b6391

Please sign in to comment.