@@ -132,20 +132,21 @@ For Nuxt 3, just wrap component in `<ClientOnly>`
132132
133133### Prop Definitions
134134
135- | Prop | Type | Default | Description |
136- | ------------------- | ------------------------- | ---------------- | ---------------------------------------------- |
137- | duration | Number | 250 | Animation duration in milliseconds |
138- | snapPoints | Array<number\| string> | [ instinctHeight] | Custom snapping positions |
139- | initialSnapPoint | Number | minHeight | Initial snap point index |
140- | blocking | Boolean | true | Block interactions with underlying content |
141- | canSwipeClose | Boolean | true | Enable swipe-to-close gesture |
142- | canBackdropClose | Boolean | true | Allow closing by tapping backdrop |
143- | expandOnContentDrag | Boolean | true | Enable expanding by dragging content |
144- | teleprtTo | String \| RendererElement | body | Teleport to a specific element |
145- | teleportDefer | Boolean | false | Defer teleporting until opened (Vue 3.5+ only) |
146- | headerClass | String | '' | Set header element class |
147- | contentClass | String | '' | Set content element class |
148- | footerClass | String | '' | Set footer element class |
135+ | Prop | Type | Default | Description |
136+ | ------------------- | ------------------------- | ---------------- | ------------------------------------------------------------------------- |
137+ | duration | Number | 250 | Animation duration in milliseconds |
138+ | snapPoints | Array<number\| string> | [ instinctHeight] | Custom snapping positions |
139+ | initialSnapPoint | Number | minHeight | Initial snap point index |
140+ | blocking | Boolean | true | Block interactions with underlying content |
141+ | canSwipeClose | Boolean | true | Enable swipe-to-close gesture |
142+ | swipeCloseThreshold | Number\| String | "50%" | The amount of translation (in px or %) after which the element will close |
143+ | canBackdropClose | Boolean | true | Allow closing by tapping backdrop |
144+ | expandOnContentDrag | Boolean | true | Enable expanding by dragging content |
145+ | teleportTo | String \| RendererElement | body | Teleport to a specific element |
146+ | teleportDefer | Boolean | false | Defer teleporting until opened (Vue 3.5+ only) |
147+ | headerClass | String | '' | Set header element class |
148+ | contentClass | String | '' | Set content element class |
149+ | footerClass | String | '' | Set footer element class |
149150
150151## Exposed methods
151152
@@ -160,7 +161,7 @@ Assuming there is `const bottomSheet = ref()`
160161## Events
161162
162163| Event | Description | Payload |
163- | -------------- | -------------------------------------- | ----------------------- |
164+ | --------------- | -------------------------------------- | ----------------------- |
164165| opened | Emitted when sheet finishes opening | - |
165166| opening-started | Emitted when sheet starts opening | - |
166167| closed | Emitted when sheet finishes closing | - |
0 commit comments