Your parametrized html template for a specific block, like article, card, hero or such
Snippet sample code
Your sample html template for a specific block, like article, card, hero or such. Here you can use sample data in the snippet, to see if your css is working well
Preview snippet
@* *@
@* *@
@if (IsLoading)
{
Loading content...
}
@code {
[Parameter] public HtmlSnippet Snippet { get; set; } = new HtmlSnippet();
[Parameter] public EventCallback OnContentUpdated { get; set; }
[Parameter] public int TemplateId { get; set; }
private bool IsLoading = false;
private string? userId;
private string? userName;
private AuthenticationState? authState;
// EventConsole console;
public async void ShowSnippetPreview(HtmlSnippet snippet)
{
//navigationManager.NavigateTo($"/preview-snippet/{TemplateId}/{snippet.Name}");
// await JSRuntime.InvokeAsync