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

user_access_role_badge.vue « 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: 43e35f2b1f0b0d9a992de9c93656d9f20d6160e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script>
/**
 * This component applies particular styling to GlBadge that isn't
 * available in the current GlBadge variants.
 * Where possible, prefer one of the supported GlBadge variants.
 * Discussion issue: https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1247
 */
import { GlBadge } from '@gitlab/ui';

export default {
  name: 'UserAccessRoleBadge',
  components: {
    GlBadge,
  },
  props: {
    size: {
      type: String,
      required: false,
      default: 'md',
    },
  },
};
</script>

<template>
  <gl-badge :size="size" class="gl-bg-transparent! gl-inset-border-1-gray-100!">
    <slot></slot>
  </gl-badge>
</template>