so://phie

verbal

A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal

blob: a00f66671c4cac86d659f7a8204357b832cd3cac (890 bytes)[doc][blame][raw]

1import VIcon from '../element/icon.js';

2

3export default {

4 props: ['id', 'value'],

5 components: {

6 VIcon,

7 },

8 methods: {

9 onChange() {

10 this.$emit('input', this.value);

11 this.$emit('change', this.value);

12 }

13 },

14 template: `

15 <div class="relative w-full">

16 <select

17 v-model="value"

18 :id="id"

19 autocomplete="off"

20 @change="onChange"

21 class="rounded-md w-full h-[52px] px-4 text-md bg-zinc-900 text-white outline-none appearance-none cursor-pointer pr-[52px]"

22 >

23 <slot></slot>

24 </select>

25 <div class="absolute top-0 right-0 w-[52px] h-[52px] select-none pointer-events-none">

26 <v-icon id="chevron-down" class="text-white"></v-icon>

27 </div>

28 </div>

29 `

30}