Files
calorie-tracker/src/lib/components/ui/avatar/avatar-fallback.svelte
Vilian Gerdzhikov 353ec976d5 Switching ui lib & refactoring (#80)
switch to shadcn ui
bump runtime versions (node, pnpm, etc)
refactor gui
2024-01-24 08:05:07 +02:00

20 lines
439 B
Svelte

<script lang="ts">
import { Avatar as AvatarPrimitive } from 'bits-ui'
import { cn } from '$lib/utils'
type $$Props = AvatarPrimitive.FallbackProps
let className: $$Props['class'] = undefined
export { className as class }
</script>
<AvatarPrimitive.Fallback
class={cn(
'flex h-full w-full items-center justify-center rounded-full bg-muted',
className
)}
{...$$restProps}
>
<slot />
</AvatarPrimitive.Fallback>