Newer
Older
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<script setup lang="ts">
import { ref } from 'vue'
const items = [
{
type: 'button',
text: 'Play next',
icon: 'bi-arrow-up-right',
click: () => {}
},
{
type: 'button',
text: 'Append to queue',
icon: 'bi-arrow-down-right',
click: () => {}
},
{
type: 'button',
text: 'Add to playlist',
icon: 'bi-music-note-list',
click: () => {},
items: [
{
type: 'button',
text: 'Sample playlist',
icon: 'bi-music-note-list',
click: () => {}
},
{ type: 'separator', },
{
type: 'button',
text: 'New playlist',
icon: 'bi-plus-lg',
click: () => {}
},
]
},
{ type: 'separator', },
{
type: 'button',
text: 'Add to favorites',
icon: 'bi-heart',
click: () => {}
},
{
type: 'button',
text: 'Organize and share',
icon: 'bi-collection',
click: () => {},
items: [
{
type: 'button',
text: 'Bandcamp',
icon: '',
click: () => {}
},
{
type: 'button',
text: 'Creative Commons',
icon: '',
click: () => {}
},
{ type: 'separator', },
{
type: 'button',
text: 'New library',
icon: 'bi-plus-lg',
click: () => {}
},
{ type: 'separator', },
{
type: 'button',
text: 'Share by link',
icon: '',
click: () => {}
},
]
},
{
type: 'button',
text: 'Download',
icon: 'bi-cloud-download',
click: () => {}
},
{ type: 'separator', },
{
type: 'button',
text: 'Report',
icon: 'bi-exclamation',
click: () => {}
},
]
const open = ref(false)
</script>
# Popover
```html
<fw-popover :items="items" />
```
<fw-options-button @click="open = !open" />
<fw-popover :items="items" v-model:open="open" />