Added auth functionality, initial work with views and field types
This commit is contained in:
28
frontend/components/ui/input-group/InputGroupButton.vue
Normal file
28
frontend/components/ui/input-group/InputGroupButton.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<script setup lang="ts">
|
||||
import type { ButtonVariants } from '../button'
|
||||
import { Button } from '../button'
|
||||
import type { HTMLAttributes } from 'vue'
|
||||
|
||||
interface Props {
|
||||
variant?: ButtonVariants['variant']
|
||||
size?: ButtonVariants['size']
|
||||
class?: HTMLAttributes['class']
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
variant: 'default',
|
||||
size: 'default',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Button
|
||||
:variant="props.variant"
|
||||
:size="props.size"
|
||||
:class="props.class"
|
||||
:disabled="props.disabled"
|
||||
>
|
||||
<slot />
|
||||
</Button>
|
||||
</template>
|
||||
Reference in New Issue
Block a user