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.