summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/components/rich_content_editor/toolbar_item.vue
blob: 58aaeef45f2fde83572f0bd5fc5ce63c0cc8db69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script>
import { GlIcon } from '@gitlab/ui';

export default {
  components: {
    GlIcon,
  },
  props: {
    icon: {
      type: String,
      required: true,
    },
  },
};
</script>
<template>
  <button class="p-0 gl-display-flex toolbar-button">
    <gl-icon class="gl-mx-auto" :name="icon" />
  </button>
</template>