Blazor component to simulate text being typed.
- Blazor WebAssembly
- Microsoft.AspNetCore.Blazor [minimum version: 3.2.0-preview1]
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
Call the component:
<Typer Text="Hello world from BlazorTyper" Start="true" />
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 |
- Create a new Issue in this repository with more informations, or, create your own pull request. :)