Skip to content

Commit b537d42

Browse files
authored
Merge pull request #8 from wickedest/master
docs: update README with slots example; docs: update README with duration property;
2 parents cdc6eda + 38e3e45 commit b537d42

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ For Nuxt 3, just wrap component in `<ClientOnly>`
8181
</template>
8282
```
8383

84+
## Slots
85+
86+
```vue
87+
<template>
88+
<BottomSheet ref="bottomSheet">
89+
<template #header> Header </template>
90+
<div>Your content</div>
91+
<template #footer> Footer </template>
92+
</BottomSheet>
93+
</template>
94+
```
95+
8496
## CSS Custom Properties
8597

8698
```css
@@ -100,6 +112,7 @@ For Nuxt 3, just wrap component in `<ClientOnly>`
100112

101113
| Prop | Type | Description | Example |
102114
| ------------------- | -------- | --------------------------------------------------------------------------------------------------- | -------------------------------- |
115+
| duration | Number | Defines the duration open and close animations. | `:duration="250"` |
103116
| snapPoints | Number[] | Defines custom snapping positions for the bottom sheet | `:snapPoints="[300, 600, 900]"` |
104117
| defaultSnapPoint | Number | Specifies the default snap point. Note that at least one snapPoint must be specified for it to work | `:default-snap-point="600"` |
105118
| blocking | Boolean | Controls whether the bottom sheet blocks interactions with underlying content | `:blocking="true"` |
@@ -111,6 +124,7 @@ For Nuxt 3, just wrap component in `<ClientOnly>`
111124

112125
| Prop | Default |
113126
| ------------------- | -------------------------- |
127+
| duration | `250` |
114128
| snapPoints | `minHeight` |
115129
| defaultSnapPoint | `minHeight / minSnapPoint` |
116130
| blocking | `true` |

0 commit comments

Comments
 (0)