Skip to content

Instantly share code, notes, and snippets.

@jonhilt
Created November 2, 2021 14:35
Show Gist options
  • Save jonhilt/26b5a286c7de598dde44ae2b4b717fb4 to your computer and use it in GitHub Desktop.
Save jonhilt/26b5a286c7de598dde44ae2b4b717fb4 to your computer and use it in GitHub Desktop.
<div class="rounded-md bg-white p-2 flex shadow">
<div>
<span class="block mb-4">@Text</span>
</div>
@if (!string.IsNullOrEmpty(Initials))
{
<div class="flex-none ml-2 w-8 h-8 rounded-full flex justify-center items-center bg-purple-400">
<span class="text-sm text-white">@Initials</span>
</div>
}
</div>
@code {
[Parameter]
public string Initials { get; set; }
[Parameter]
public string Text { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment