docs: remove useStyles

This commit is contained in:
Julien Huang 2024-06-28 22:42:33 +02:00 committed by GitHub
parent 3d3d6f4c36
commit 1376da6a78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 21 deletions

View File

@ -62,27 +62,6 @@ useScript({
:read-more{to="https://unhead.unjs.io/usage/composables/use-script "} :read-more{to="https://unhead.unjs.io/usage/composables/use-script "}
### useStyles
The `useStyles` composable enables you to leverage `nuxt-assets` for third-party stylesheets.
```vue
<script setup lang="ts">
useStyles(['https://www.example.com/styles.css'])
</script>
```
You can use optional asset strategies to inline styles directly in the `head` section of your `document`.
```vue
<script setup lang="ts">
useStyles(
['https://www.example.com/styles.css'],
{ assetStrategy: 'inline' }
)
</script>
```
### Third-Party Wrappers ### Third-Party Wrappers
Nuxt provides a collection of utilities that are already configured to load and initialize popular third parties in the most performant way. These include: Nuxt provides a collection of utilities that are already configured to load and initialize popular third parties in the most performant way. These include: