docs(dropdown-menu): update

This commit is contained in:
Benjamin Canac
2024-08-06 16:45:07 +02:00
parent 8d560bdd21
commit 39a63e8e3f
11 changed files with 485 additions and 48 deletions

View File

@@ -11,15 +11,17 @@ links:
## Usage
### Items
Use the `items` prop as an array of objects with the following properties:
- `label?: string`{lang="ts-type"}
- `icon?: string`{lang="ts-type"}
- `trailingIcon?: string`{lang="ts-type"}
- [`slot?: string`{lang="ts-type"}](#with-custom-slot)
- `content?: string`{lang="ts-type"}
- `value?: string`{lang="ts-type"}
- `disabled?: boolean`{lang="ts-type"}
- [`slot?: string`{lang="ts-type"}](#with-custom-slot)
::component-code
---
@@ -200,7 +202,7 @@ props:
### With custom slot
Use the `slot` property to customize a specific item.
Use the `slot` property instead of the `#content` slot to customize a specific item.
::component-example
---