Rive.Blazor.Wasm
1.0.1
dotnet add package Rive.Blazor.Wasm --version 1.0.1
NuGet\Install-Package Rive.Blazor.Wasm -Version 1.0.1
<PackageReference Include="Rive.Blazor.Wasm" Version="1.0.1" />
paket add Rive.Blazor.Wasm --version 1.0.1
#r "nuget: Rive.Blazor.Wasm, 1.0.1"
// Install Rive.Blazor.Wasm as a Cake Addin #addin nuget:?package=Rive.Blazor.Wasm&version=1.0.1 // Install Rive.Blazor.Wasm as a Cake Tool #tool nuget:?package=Rive.Blazor.Wasm&version=1.0.1
Rive.Blazor.Wasm
A Blazor component for Rive animations.
Installation
Install the package from NuGet:
dotnet add package Rive.Blazor.Wasm
Usage
Add the RivePlayer
component to your Blazor component:
<RivePlayer
File="https://cdn.rive.app/animations/vehicles.riv"
Width="400"
Height="400"
Autoplay="true"
Artboard="Vehicles"
StateMachines="vehicles"
/>
The File
parameter is the URL of the Rive file to load.
The Width
and Height
parameters are the dimensions of the canvas.
The Autoplay
parameter is a boolean that indicates whether the animation should start automatically.
The Artboard
parameter is the name of the artboard to use.
The StateMachines
parameter is the name of the state machine to use.
Other features are currently not supported. Passing additional parameters to the component will be forwarded to the canvas element.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
# Changelog
## v1.0.1
- No changes; release test
## v1.0.0
- Initial release
- Added `RivePlayer` component