mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
This PR adds dropdown primitives to help compose custom dropdowns across the app. The following the sample usage --------- Co-authored-by: Pranav <pranav@chatwoot.com>
23 lines
402 B
Vue
23 lines
402 B
Vue
<script setup>
|
|
defineProps({
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div class="-mx-2 n-dropdown-section">
|
|
<div
|
|
v-if="title"
|
|
class="px-4 mb-3 mt-1 leading-4 font-medium tracking-[0.2px] text-n-slate-10 text-xs"
|
|
>
|
|
{{ title }}
|
|
</div>
|
|
<ul class="gap-2 grid reset-base list-none px-2">
|
|
<slot />
|
|
</ul>
|
|
</div>
|
|
</template>
|