@gitlab/ui
Version:
GitLab UI Components
26 lines (22 loc) • 663 B
JavaScript
import { withKnobs } from '@storybook/addon-knobs';
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
import readme from './card.md';
import GlCard from './card.vue';
const components = {
GlCard,
};
documentedStoriesOf('base/card', readme)
.addDecorator(withKnobs)
.add('default card', () => ({
components,
template: `
<gl-card>
<template
<h3 class="gl-my-0 gl-font-weight-bold gl-font-lg">This is a custom header</h3>
</template>
Hello World
<template
<span>This is a custom footer</span>
</template>
</gl-card>`,
}));