feat(ui): animate sidebar and toolbar interaction feedback

This commit is contained in:
zipg authored and GitHub committed 2026-08-31 16:37:51 +08:00
1 parent bcea953a50
commit 99c3bd0f42
14 files changed
+689 -100

No files matched your search

@@ -173,7 +173,9 @@ onBeforeUnmount(close);
<template>
<button ref="triggerRef" type="button" :class="triggerClass" :title="triggerTitle ?? selectedItem?.title" :aria-label="ariaLabel" :aria-expanded="open" :disabled="disabled" @click="toggle">
<component :is="triggerIcon" v-if="triggerIcon" :class="triggerIconClass" />
<slot name="trigger-icon" :open="open">
<component :is="triggerIcon" v-if="triggerIcon" :class="triggerIconClass" />
</slot>
<span v-if="showTriggerLabel">{{ triggerLabel ?? selectedItem?.label }}</span>
<ChevronDown v-if="showChevron" class="h-3 w-3 opacity-50" />
</button>