(args, { argTypes })
| 6 | } |
| 7 | |
| 8 | const Template = (args, { argTypes }) => ({ |
| 9 | props: Object.keys(argTypes), |
| 10 | components: { PageSection }, |
| 11 | template: |
| 12 | ` |
| 13 | <PageSection v-bind="$props"> |
| 14 | <template v-slot:heading v-if="${'heading' in args}">${args.heading}</template> |
| 15 | <template v-slot:body v-if="${'body' in args}">${args.body}</template> |
| 16 | <template v-slot:tail v-if="${'tail' in args}">${args.tail}</template> |
| 17 | </PageSection> |
| 18 | ` |
| 19 | }) |
| 20 | |
| 21 | export const Default = Template.bind({}) |
| 22 |
nothing calls this directly
no outgoing calls
no test coverage detected