-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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()) | ||
|