feat: migrate button groups and toggle buttons with focus regressions
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
ButtonGroup,
|
||||
Button,
|
||||
ButtonGroupSeparator,
|
||||
} from "@heroui-vue/components";
|
||||
|
||||
const sizes = [
|
||||
{ size: "sm", label: "Small" },
|
||||
{ size: "md", label: "Medium (default)" },
|
||||
{ size: "lg", label: "Large" },
|
||||
] as const;
|
||||
</script>
|
||||
<template>
|
||||
<div class="flex w-full flex-col gap-6">
|
||||
<div v-for="item in sizes" :key="item.size" class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">{{ item.label }}</p>
|
||||
<ButtonGroup :size="item.size">
|
||||
<Button>First</Button>
|
||||
<Button>
|
||||
<ButtonGroupSeparator />
|
||||
Second
|
||||
</Button>
|
||||
<Button>
|
||||
<ButtonGroupSeparator />
|
||||
Third
|
||||
</Button>
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user