Skip to content

gustavoosantoos/BlazorTyper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlazorTyper

Blazor component to simulate text being typed.

BlazorTyperGif

Prerequisites:

  • Blazor WebAssembly
  • Microsoft.AspNetCore.Blazor [minimum version: 3.2.0-preview1]

How to install:

Run the following command in your terminal, inside the project folder (or, install via Nuget, the package BlazorTyper):
dotnet add package BlazorTyper

In your _Imports.razor file or in the component file, include:
@using BlazorTyper

Basic usage:

Call the component:

<Typer Text="Hello world from BlazorTyper" Start="true" />

Parameters:

Parameter Type Description Default Value
Text string Text that will be typed null
Start bool Should start the typing false
Repeat int Times to repeat the typing after the first iteration 0
EraseBeforeRepeat bool Should simulate the text erasure before the next iteration false
PreTypingDelay TimeSpan Delay time before the typing TimeSpan.Zero
TypingDelay TimeSpan Delay time between every text character Random beetween 20 and 100 milliseconds

Having issues?

  • Create a new Issue in this repository with more informations, or, create your own pull request. :)