-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathSidebarCategories.vue
49 lines (43 loc) · 1.34 KB
/
SidebarCategories.vue
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
<template>
<d-card class="card-small mb-3">
<!-- Card Header -->
<d-card-header class="border-bottom">
<h6 class="m-0">{{ title }}</h6>
</d-card-header>
<d-card-body class="p-0">
<d-list-group flush>
<!-- Categories -->
<d-list-group-item class="px-3 pb-2">
<d-checkbox class="mb-1" value="uncategorized">Uncategorized</d-checkbox>
<d-checkbox class="mb-1" value="design">Design</d-checkbox>
<d-checkbox class="mb-1" value="development">Development</d-checkbox>
<d-checkbox class="mb-1" value="writing">Writing</d-checkbox>
<d-checkbox class="mb-1" value="books">Books</d-checkbox>
</d-list-group-item>
<!-- Add New Category -->
<d-list-group-item class="px-3 pb-2">
<d-input-group class="mb-2">
<d-input placeholder="New category" />
<d-input-group-addon append>
<d-button class="btn-white px-2"><i class="material-icons">add</i></d-button>
</d-input-group-addon>
</d-input-group>
</d-list-group-item>
</d-list-group>
</d-card-body>
</d-card>
</template>
<script>
export default {
name: 'sidebar-categories',
props: {
/**
* The component's title.
*/
title: {
type: String,
default: 'Categories',
},
},
};
</script>