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
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { ref } from "vue";
import { ToggleButton } from "@heroui-vue/components";
import { IconHeart, IconHeartFilled } from "@tabler/icons-vue";
const isSelected = ref(false);
</script>
<template>
<div class="flex flex-col gap-4">
<div class="flex gap-3">
<ToggleButton v-model="isSelected">
<IconHeartFilled v-if="isSelected" aria-hidden="true" />
<IconHeart v-else aria-hidden="true" />
{{ isSelected ? "Liked" : "Like" }}
</ToggleButton>
</div>
<p class="text-sm text-muted">
Status:
<span class="font-medium">
{{ isSelected ? "Selected" : "Not selected" }}
</span>
</p>
</div>
</template>