Welcome to mirror list, hosted at ThFree Co, Russian Federation.

code_block_highlighted.stories.js « components « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf81a811d16807c8d82353134e06221a9a9c233f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import CodeBlockHighlighted from './code_block_highlighted.vue';

export default {
  component: CodeBlockHighlighted,
  title: 'vue_shared/code_block_highlighted',
};

const Template = (args, { argTypes }) => ({
  components: { CodeBlockHighlighted },
  props: Object.keys(argTypes),
  template: '<code-block-highlighted v-bind="$props" />',
});

export const Default = Template.bind({});
Default.args = {
  code: `const foo = 1;\nconsole.log(foo + ' yay')`,
  language: 'javascript',
};