From c63920d05b78b088bd3c216eb9dd024795665a5c Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 17 Oct 2024 21:25:50 +0200 Subject: [PATCH] docs(context-menu/dropdown-menu): improve `items` properties --- docs/content/3.components/context-menu.md | 2 ++ docs/content/3.components/dropdown-menu.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/content/3.components/context-menu.md b/docs/content/3.components/context-menu.md index eb8ea2df..8e633d46 100644 --- a/docs/content/3.components/context-menu.md +++ b/docs/content/3.components/context-menu.md @@ -23,10 +23,12 @@ Use the `items` prop as an array of objects with the following properties: - `avatar?: AvatarProps`{lang="ts-type"} - `kbds?: string[] | KbdProps[]`{lang="ts-type"} - [`type?: "link" | "label" | "separator" | "checkbox"`{lang="ts-type"}](#with-checkbox-items) +- [`checked?: boolean`{lang="ts-type"}](#with-checkbox-items) - `disabled?: boolean`{lang="ts-type"} - `class?: any`{lang="ts-type"} - [`slot?: string`{lang="ts-type"}](#with-custom-slot) - `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. diff --git a/docs/content/3.components/dropdown-menu.md b/docs/content/3.components/dropdown-menu.md index 268f7123..6a074d71 100644 --- a/docs/content/3.components/dropdown-menu.md +++ b/docs/content/3.components/dropdown-menu.md @@ -23,10 +23,12 @@ Use the `items` prop as an array of objects with the following properties: - `avatar?: AvatarProps`{lang="ts-type"} - `kbds?: string[] | KbdProps[]`{lang="ts-type"} - [`type?: "link" | "label" | "separator" | "checkbox"`{lang="ts-type"}](#with-checkbox-items) +- [`checked?: boolean`{lang="ts-type"}](#with-checkbox-items) - `disabled?: boolean`{lang="ts-type"} - `class?: any`{lang="ts-type"} - [`slot?: string`{lang="ts-type"}](#with-custom-slot) - `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.