docs(components): consistent writing

This commit is contained in:
Benjamin Canac
2024-12-10 12:59:01 +01:00
parent edad9b7f5c
commit b2f68dcf81
10 changed files with 17 additions and 13 deletions

View File

@@ -131,7 +131,7 @@ props:
---
::
You can also pass all the props of the [Button](/components/button) component to customize it.
You can pass any property from the [Button](/components/button) component to customize it.
::component-code
---

View File

@@ -17,7 +17,11 @@ The Avatar uses the `NuxtImg` component when [`@nuxt/image`](https://github.com/
### Src
Use the `src` prop to set the image URL. You can pass any property from HTML `<img>` element such as `alt`, `loading`, etc.
Use the `src` prop to set the image URL.
::note
You can pass any property from the HTML `<img>` element such as `alt`, `loading`, etc.
::
::component-code
---

View File

@@ -18,7 +18,7 @@ Use the `items` prop as an array of objects with the following properties:
- `class?: any`{lang="ts-type"}
- [`slot?: string`{lang="ts-type"}](#with-custom-slot)
You can also pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
You can pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
::component-code
---

View File

@@ -358,7 +358,7 @@ props:
---
::
You can also pass all the props of the [Button](/components/button) component to customize it.
You can pass any property from the [Button](/components/button) component to customize it.
::component-code
---

View File

@@ -32,7 +32,7 @@ Use the `items` prop as an array of objects with the following properties:
- `onSelect?(e: Event): void`{lang="ts-type"}
- [`onUpdateChecked?(checked: boolean): void`{lang="ts-type"}](#with-checkbox-items)
You can also pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
You can pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
::component-code
---
@@ -104,7 +104,7 @@ slots:
::
::note
You can pass an array of arrays to the `items` prop to create separated groups of items.
You can also pass an array of arrays to the `items` prop to create separated groups of items.
::
::tip

View File

@@ -32,7 +32,7 @@ Use the `items` prop as an array of objects with the following properties:
- `onSelect?(e: Event): void`{lang="ts-type"}
- [`onUpdateChecked?(checked: boolean): void`{lang="ts-type"}](#with-checkbox-items)
You can also pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
You can pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
::component-code
---
@@ -103,7 +103,7 @@ slots:
::
::note
You can pass an array of arrays to the `items` prop to create separated groups of items.
You can also pass an array of arrays to the `items` prop to create separated groups of items.
::
::tip

View File

@@ -93,7 +93,7 @@ slots:
Use the `close` prop to customize or hide the close button (with `false` value) displayed in the Modal's header.
You can pass all the props of the [Button](/components/button) component to customize it.
You can pass any property from the [Button](/components/button) component to customize it.
::component-code
---

View File

@@ -27,7 +27,7 @@ Use the `items` prop as an array of objects with the following properties:
- [`slot?: string`{lang="ts-type"}](#with-custom-slot)
- `onSelect?(e: Event): void`{lang="ts-type"}
You can also pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
You can pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
::component-code
---
@@ -120,7 +120,7 @@ props:
::
::note
You can pass an array of arrays to the `items` prop to display groups of items.
You can also pass an array of arrays to the `items` prop to display groups of items.
::
::tip

View File

@@ -202,7 +202,7 @@ props:
Use the `search-input` prop to customize or hide the search input (with `false` value).
You can pass all the props of the [Input](/components/input) component to customize it.
You can pass any property from the [Input](/components/input) component to customize it.
::component-code
---

View File

@@ -93,7 +93,7 @@ slots:
Use the `close` prop to customize or hide the close button (with `false` value) displayed in the Slideover's header.
You can pass all the props of the [Button](/components/button) component to customize it.
You can pass any property from the [Button](/components/button) component to customize it.
::component-code
---