mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(composables): clean
This commit is contained in:
@@ -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<T>): void`
|
||||
### `open(component: Component, props?: ModalProps & ComponentProps<T>)`
|
||||
|
||||
Opens a modal with the specified component and props.
|
||||
|
||||
@@ -39,7 +39,7 @@ function openModal() {
|
||||
</script>
|
||||
```
|
||||
|
||||
### `close(): Promise<void>`
|
||||
### `close()`
|
||||
|
||||
Closes the currently open modal.
|
||||
|
||||
@@ -53,7 +53,7 @@ async function closeModal() {
|
||||
</script>
|
||||
```
|
||||
|
||||
### `reset(): void`
|
||||
### `reset()`
|
||||
|
||||
Resets the modal state to its default values.
|
||||
|
||||
@@ -67,7 +67,7 @@ function resetModal() {
|
||||
</script>
|
||||
```
|
||||
|
||||
### `patch(props: Partial<ModalProps & ComponentProps<T>>): void`
|
||||
### `patch(props: Partial<ModalProps & ComponentProps<T>>)`
|
||||
|
||||
Updates the props of the currently open modal.
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ Learn how to customize the appearance and behavior of slideovers in the **Slideo
|
||||
|
||||
## API
|
||||
|
||||
### `open(component: Component, props?: SlideoverProps & ComponentProps<T>): void`
|
||||
### `open(component: Component, props?: SlideoverProps & ComponentProps<T>)`
|
||||
|
||||
Opens a slideover with the specified component and props.
|
||||
|
||||
@@ -53,7 +53,7 @@ async function closeSlideover() {
|
||||
</script>
|
||||
````
|
||||
|
||||
### `reset(): void`
|
||||
### `reset()`
|
||||
|
||||
Resets the slideover state to its default values.
|
||||
|
||||
@@ -67,7 +67,7 @@ function resetSlideover() {
|
||||
</script>
|
||||
````
|
||||
|
||||
### `patch(props: Partial<SlideoverProps & ComponentProps<T>>): void`
|
||||
### `patch(props: Partial<SlideoverProps & ComponentProps<T>>)`
|
||||
|
||||
Updates the props of the currently open slideover.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user