feat: migrate button groups and toggle buttons with focus regressions
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user