mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-08 07:11:03 -04:00
21 lines
608 B
Vue
21 lines
608 B
Vue
<script setup lang="ts">
|
|
const optionsA = [
|
|
{ label: 'Option A', value: 'a' },
|
|
{ label: 'Option B', value: 'b', tooltip: 'This is a tooltip' },
|
|
{ label: 'Option C', value: 'c' },
|
|
];
|
|
|
|
const optionB = {
|
|
'Option A': 'a',
|
|
'Option B': 'b',
|
|
'Option C': 'c',
|
|
};
|
|
|
|
const valueA = ref('a');
|
|
</script>
|
|
|
|
<template>
|
|
<c-buttons-select v-model:value="valueA" :options="optionsA" label="Label: " />
|
|
<c-buttons-select v-model:value="valueA" :options="optionsA" label="Label: " label-position="left" mt-2 />
|
|
<c-buttons-select v-model:value="valueA" :options="optionB" label="Options object: " />
|
|
</template>
|