48 lines
1.3 KiB
Vue
48 lines
1.3 KiB
Vue
<script setup lang="ts">
|
|
import {
|
|
ButtonGroup,
|
|
Button,
|
|
ButtonGroupSeparator,
|
|
} from "@heroui-vue/components";
|
|
import { IconWorld, IconPlus, IconTrash } from "@tabler/icons-vue";
|
|
</script>
|
|
<template>
|
|
<div class="flex w-full flex-col gap-6">
|
|
<div class="flex flex-col gap-2">
|
|
<p class="text-sm font-medium text-muted">With icons</p>
|
|
<ButtonGroup variant="secondary">
|
|
<Button>
|
|
<IconWorld aria-hidden="true" />
|
|
Search
|
|
</Button>
|
|
<Button>
|
|
<ButtonGroupSeparator />
|
|
<IconPlus aria-hidden="true" />
|
|
Add
|
|
</Button>
|
|
<Button>
|
|
<ButtonGroupSeparator />
|
|
<IconTrash aria-hidden="true" />
|
|
Delete
|
|
</Button>
|
|
</ButtonGroup>
|
|
</div>
|
|
<div class="flex flex-col gap-2">
|
|
<p class="text-sm font-medium text-muted">Icon only buttons</p>
|
|
<ButtonGroup variant="tertiary">
|
|
<Button is-icon-only aria-label="Search">
|
|
<IconWorld aria-hidden="true" />
|
|
</Button>
|
|
<Button is-icon-only aria-label="Add">
|
|
<ButtonGroupSeparator />
|
|
<IconPlus aria-hidden="true" />
|
|
</Button>
|
|
<Button is-icon-only aria-label="Delete">
|
|
<ButtonGroupSeparator />
|
|
<IconTrash aria-hidden="true" />
|
|
</Button>
|
|
</ButtonGroup>
|
|
</div>
|
|
</div>
|
|
</template>
|