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

message_form_group.vue « components « broadcast_messages « admin « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eec51c0c28b63ea69d91f69d2761c0d015358f5e (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
30
31
32
33
34
<script>
import { GlFormGroup } from '@gitlab/ui';

export default {
  name: 'MessageFormGroup',
  components: {
    GlFormGroup,
  },
  props: {
    label: {
      type: String,
      required: true,
    },
    labelFor: {
      type: String,
      required: false,
      default: '',
    },
  },
};
</script>
<template>
  <div>
    <gl-form-group
      :label="label"
      :label-for="labelFor"
      label-cols-sm="2"
      label-class="gl-mt-3"
      label-align-sm="right"
    >
      <slot></slot>
    </gl-form-group>
  </div>
</template>