A dropdown container for Vue3
If you are using vue 2.x
version, please use v-dropdown 2.x version instead
Documentation and examples please visit below sites
# npm
npm i v-dropdown
# yarn
yarn add v-dropdown
# pnpm
pnpm add v-dropdown
<template>
<Dropdown @visible-change="change">
<!-- dropdown trigger -->
<template #trigger>
<DropdownTrigger />
</template>
<DropdownContent>
<div>some contents</div>
</DropdownContent>
</Dropdown>
</template>
<script setup>
import { Dropdown, DropdownContent, DropdownTrigger } from 'v-dropdown'
function change (val) {
console.log(val)
}
</script>