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

Function Template

app/views/pd/IframeModal.stories.js:8–21  ·  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: { IframeModal },
11 template: `<IframeModal v-bind="$props">
12 <template #opener="{ openModal }">
13 <button
14 class="btn btn-md"
15 @click="openModal"
16 >
17 Open Modal
18 </button>
19 </template>
20 </IframeModal>`,
21})
22
23export const Default = Template.bind({})
24Default.args = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected