mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-19 01:23:09 +00:00
45 lines
982 B
JavaScript
45 lines
982 B
JavaScript
import PageHeading from './page_heading.vue';
|
|
|
|
export default {
|
|
component: PageHeading,
|
|
title: 'vue_shared/page_heading',
|
|
};
|
|
|
|
const Template = (args, { argTypes }) => ({
|
|
components: { PageHeading },
|
|
props: Object.keys(argTypes),
|
|
template: `
|
|
<page-heading v-bind="$props">
|
|
<template #actions>
|
|
Actions go here
|
|
</template>
|
|
<template #description>
|
|
Description goes here
|
|
</template>
|
|
</page-heading>
|
|
`,
|
|
});
|
|
|
|
export const Default = Template.bind({});
|
|
Default.args = {
|
|
heading: 'Page heading',
|
|
};
|
|
|
|
export const WithHeadingSlot = (args, { argTypes }) => ({
|
|
components: { PageHeading },
|
|
props: Object.keys(argTypes),
|
|
template: `
|
|
<page-heading v-bind="$props">
|
|
<template #heading>
|
|
Heading with <i>custom items</i>
|
|
</template>
|
|
<template #actions>
|
|
Actions go here
|
|
</template>
|
|
<template #description>
|
|
Description goes here
|
|
</template>
|
|
</page-heading>
|
|
`,
|
|
});
|