From 10ab4ce06d761dd2d47023962d34bdd7ba1596c3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 30 Sep 2024 14:33:07 +0200 Subject: [PATCH] docs(composables): clean --- docs/content/2.composables/use-modal.md | 8 ++++---- docs/content/2.composables/use-slideover.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/content/2.composables/use-modal.md b/docs/content/2.composables/use-modal.md index 59909dfd..df5a7acc 100644 --- a/docs/content/2.composables/use-modal.md +++ b/docs/content/2.composables/use-modal.md @@ -21,7 +21,7 @@ Learn how to customize the appearance and behavior of modals in the **Modal** co ## API -### `open(component: Component, props?: ModalProps & ComponentProps): void` +### `open(component: Component, props?: ModalProps & ComponentProps)` Opens a modal with the specified component and props. @@ -39,7 +39,7 @@ function openModal() { ``` -### `close(): Promise` +### `close()` Closes the currently open modal. @@ -53,7 +53,7 @@ async function closeModal() { ``` -### `reset(): void` +### `reset()` Resets the modal state to its default values. @@ -67,7 +67,7 @@ function resetModal() { ``` -### `patch(props: Partial>): void` +### `patch(props: Partial>)` Updates the props of the currently open modal. diff --git a/docs/content/2.composables/use-slideover.md b/docs/content/2.composables/use-slideover.md index 9896261b..2b18aaa7 100644 --- a/docs/content/2.composables/use-slideover.md +++ b/docs/content/2.composables/use-slideover.md @@ -21,7 +21,7 @@ Learn how to customize the appearance and behavior of slideovers in the **Slideo ## API -### `open(component: Component, props?: SlideoverProps & ComponentProps): void` +### `open(component: Component, props?: SlideoverProps & ComponentProps)` Opens a slideover with the specified component and props. @@ -53,7 +53,7 @@ async function closeSlideover() { ```` -### `reset(): void` +### `reset()` Resets the slideover state to its default values. @@ -67,7 +67,7 @@ function resetSlideover() { ```` -### `patch(props: Partial>): void` +### `patch(props: Partial>)` Updates the props of the currently open slideover.