| 123456789101112131415161718192021 |
- <script setup lang="ts">
- import type { InputGroupButtonProps } from "."
- import { cn } from '@/Packages/Shadcn/Lib/utils'
- import { Button } from '@/Packages/Shadcn/Components/ui/button'
- 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>
|