Added auth functionality, initial work with views and field types
This commit is contained in:
22
frontend/components/ui/input-group/InputGroupAddon.vue
Normal file
22
frontend/components/ui/input-group/InputGroupAddon.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
import type { HTMLAttributes } from 'vue'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
const props = defineProps<{
|
||||
align?: 'start' | 'end' | 'center' | 'block-end'
|
||||
class?: HTMLAttributes['class']
|
||||
}>()
|
||||
|
||||
const alignClasses = {
|
||||
start: 'justify-start',
|
||||
end: 'justify-end',
|
||||
center: 'justify-center',
|
||||
'block-end': 'justify-end items-end',
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="cn('flex flex-wrap items-center gap-2', alignClasses[props.align || 'start'], props.class)">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user