feat: migrate button groups and toggle buttons with focus regressions

This commit is contained in:
maoyingjie
2026-10-23 09:57:41 +08:00
parent 99df0f1c91
commit 9c93647ad2
61 changed files with 4535 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
<script setup lang="ts">
import { ref } from "vue";
import { ToggleButton } from "@heroui-vue/components";
import { IconHeart, IconHeartFilled } from "@tabler/icons-vue";
const liked = ref(false);
</script>
<template>
<div class="flex gap-3">
<ToggleButton v-model="liked">
<IconHeartFilled v-if="liked" aria-hidden="true" />
<IconHeart v-else aria-hidden="true" />
Like
</ToggleButton>
<ToggleButton variant="ghost">
<IconHeart aria-hidden="true" />
Like
</ToggleButton>
</div>
</template>