MCPcopy Create free account
hub / github.com/codecombat/codecombat / Template

Function Template

app/components/common/elements/PageSection.stories.js:8–19  ·  view source on GitHub ↗
(args, { argTypes })

Source from the content-addressed store, hash-verified

6}
7
8const 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
21export const Default = Template.bind({})
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected