-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathchip_variants.story.vue
More file actions
55 lines (53 loc) · 1.13 KB
/
chip_variants.story.vue
File metadata and controls
55 lines (53 loc) · 1.13 KB
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
53
54
55
<!-- eslint-disable vue/no-v-text-v-html-on-component -->
<template>
<div class="d-d-flex d-fd-column d-stack8">
<div>
<h4>With Icon</h4>
<dt-chip>
<template #icon>
<dt-icon
name="lock-filled"
size="200"
/>
</template>
<template #default>
Chip
</template>
</dt-chip>
</div>
<div>
<h4>With Avatar</h4>
<dt-chip>
<template #avatar>
<dt-avatar
full-name="Jaqueline Nackos"
:seed="$attrs.avatarSeed"
/>
</template>
<template #default>
Chip
</template>
</dt-chip>
</div>
<div>
<h4>Non interactive</h4>
<dt-chip
:interactive="false"
hide-close
>
<template #default>
Chip
</template>
</dt-chip>
</div>
</div>
</template>
<script>
import DtChip from './chip.vue';
import { DtIcon } from '@/components/icon';
import { DtAvatar } from '@/components/avatar';
export default {
name: 'DtChipVariants',
components: { DtAvatar, DtChip, DtIcon },
};
</script>