32 lines
763 B
Vue
32 lines
763 B
Vue
<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>
|