diff --git a/docs/api/options.md b/docs/api/options.md index b593f0bc3..ecf1cda5f 100644 --- a/docs/api/options.md +++ b/docs/api/options.md @@ -54,12 +54,25 @@ Example: ```js import Foo from './Foo.vue' +import MyComponent from './MyComponent.vue' const bazComponent = { name: 'baz-component', template: '
baz
' } +const yourComponent = { + props: { + foo: { + type: String, + required: true + } + }, + render(h) { + return h('p', this.foo) + } +} + const wrapper = shallowMount(Component, { slots: { default: [Foo, '