mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +00:00
docs: remove useStyles
This commit is contained in:
parent
3d3d6f4c36
commit
1376da6a78
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user