Skip to content

Commit

Permalink
docs(content): update
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Sep 23, 2024
1 parent 7cd8191 commit d03d2e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/src/components/content-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
Optionally, the composable [`useContentContainer`](../composables/use-content-container) can also be used as a wrapper.
:::

The `ContentContainer` is used to map the depth of the page structure.
The `ContentContainer` is used to map the depth of the element structure.

With each nested `ContentContainer` the page structure becomes one level deeper (`level`).
With each nested `ContentContainer` the element structure becomes one level deeper (`level`).

The appropriate HTML element for the page structure is determined based on the `level`.
The appropriate HTML element for the page structure is determined based on the `level`. (e.g. `main`, `section`, `article`)

## Properties

Expand Down
6 changes: 2 additions & 4 deletions docs/src/composables/use-content-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
Optionally, the component [`<ContentContainer>`](../components/content-container) can also be used as a wrapper.
:::

The composable `useContentContainer` is used to map the depth of the page structure.
The composable `useContentContainer()` is used to map the depth of the page structure.

With each call of `useContentContainer()` in nested components, the level of the page structure is increased by one level (`level`).
With each call of `useContentContainer()` in nested components, the `level` of the element structure is increased by one `level`.

The appropriate HTML element for the page structure is determined based on the `level`. (e.g. `main`, `section`, `article`)

Translated with DeepL.com (free version)

```vue
<template>
<component v-if="currentTag" :is="currentTag">
Expand Down

0 comments on commit d03d2e9

Please sign in to comment.