Skip to content

Commit 92ff811

Browse files
committed
Update readme to show props and on options
1 parent fabc1dd commit 92ff811

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

packages/bottomsheet/README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ import MyComponent from 'MyComponent.vue';
137137

138138
//inside another Vue component
139139
const options: VueBottomSheetOptions = {
140+
// props to be passed to MyComponent
141+
props: {
142+
someProp: true,
143+
anotherProp: false
144+
},
145+
// listeners to be connected to MyComponent
146+
on: {
147+
someEvent: (value) => { console.log(value) }
148+
}
140149
};
141150
this.$showBottomSheet(MyComponent, options)
142151
```
@@ -158,7 +167,15 @@ import MyComponent from 'MyComponent.vue';
158167

159168

160169
const options: VueBottomSheetOptions = {
161-
...
170+
// props to be passed to MyComponent
171+
props: {
172+
someProp: true,
173+
anotherProp: false
174+
},
175+
// listeners to be connected to MyComponent
176+
on: {
177+
someEvent: (value) => { console.log(value) }
178+
}
162179
};
163180

164181
const { showBottomSheet, closeBottomSheet } = useBottomSheet()

0 commit comments

Comments
 (0)