mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-03-09 14:48:05 +00:00
laravel inertia
This commit is contained in:
24
laravel-inertia/resources/js/components/ui/avatar/Avatar.vue
Normal file
24
laravel-inertia/resources/js/components/ui/avatar/Avatar.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
import { cn } from '@/lib/utils';
|
||||
import { AvatarRoot } from 'radix-vue';
|
||||
import type { HTMLAttributes } from 'vue';
|
||||
import { avatarVariant, type AvatarVariants } from '.';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
class?: HTMLAttributes['class'];
|
||||
size?: AvatarVariants['size'];
|
||||
shape?: AvatarVariants['shape'];
|
||||
}>(),
|
||||
{
|
||||
size: 'sm',
|
||||
shape: 'circle',
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AvatarRoot :class="cn(avatarVariant({ size, shape }), props.class)">
|
||||
<slot />
|
||||
</AvatarRoot>
|
||||
</template>
|
||||
Reference in New Issue
Block a user