aboutsummaryrefslogtreecommitdiff
path: root/src/ui/c-button/c-button.demo.vue
blob: ce339f5eb3a6b2693a1e75a9f04b8aedecc3bf8c (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
  <div v-for="buttonVariant of buttonVariants" :key="buttonVariant">
    <h2>{{ _.capitalize(buttonVariant) }}</h2>

    <div v-for="buttonSize of buttonSizes" :key="buttonSize" mb-2>
      <c-button
        v-for="buttonType of buttonTypes"
        :key="buttonType"
        :variant="buttonVariant"
        :type="buttonType"
        :size="buttonSize"
        mx-1
      >
        Button
      </c-button>

      <c-button
        v-for="buttonType of buttonTypes"
        :key="buttonType"
        :variant="buttonVariant"
        :type="buttonType"
        :size="buttonSize"
        circle
        mx-1
      >
        A
      </c-button>

      <c-button
        v-for="buttonType of buttonTypes"
        :key="buttonType"
        :variant="buttonVariant"
        :type="buttonType"
        :size="buttonSize"
        circle
        mx-1
      >
        <icon-mdi-content-copy />
      </c-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import _ from 'lodash';

const buttonVariants = ['basic', 'text'] as const;
const buttonTypes = ['default', 'primary', 'warning'] as const;
const buttonSizes = ['small', 'medium', 'large'] as const;
</script>

<style lang="less" scoped></style>