From 6ca0a46d4529e941119e4a5cab5170aac0b3190f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 09:12:25 +0200 Subject: [PATCH] adds wip initial mode to Avatar --- packages/bbui/src/Avatar/Avatar.svelte | 35 +++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte index d2aef72446..ae3ebda82c 100644 --- a/packages/bbui/src/Avatar/Avatar.svelte +++ b/packages/bbui/src/Avatar/Avatar.svelte @@ -2,11 +2,34 @@ import "@spectrum-css/avatar/dist/index-vars.css" export let url = "" export let disabled = false + export let initials = "KA" -Avatar +{#if url} + Avatar +{:else} +
{initials}
+{/if} + +