mirror of
https://github.com/versia-pub/frontend.git
synced 2026-01-26 04:16:02 +01:00
22 lines
541 B
Vue
22 lines
541 B
Vue
<script setup lang="ts">
|
|
import { Button } from "@/components/ui/button";
|
|
import { cn } from "@/lib/utils";
|
|
import type { InputGroupButtonProps } from ".";
|
|
import { inputGroupButtonVariants } from ".";
|
|
|
|
const props = withDefaults(defineProps<InputGroupButtonProps>(), {
|
|
size: "xs",
|
|
variant: "ghost",
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<Button
|
|
:data-size="props.size"
|
|
:variant="props.variant"
|
|
:class="cn(inputGroupButtonVariants({ size: props.size }), props.class)"
|
|
>
|
|
<slot />
|
|
</Button>
|
|
</template>
|