From the course: Blazor: Getting Started

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create your Blazor component library

Create your Blazor component library - Blazor Tutorial

From the course: Blazor: Getting Started

Start my 1-month free trial

Create your Blazor component library

- [Instructor] I'm really happy with our beam animation in the callback. Let's move it to a separate library so that we can use it in all of our other Blazor applications. In the terminal, I'm going to create a new project to hold our beam animation. It's going to be of the type, Blazor class library. The template is named razorclasslib. And I'll output it to beam.animation. Now I'll add it to the solution. The command line interface for this is a good bit easier than the graphical version in full Visual Studio, as I'm used to it now, but it isn't quite as discoverable. Now let's add a reference from our client project to our animation project. All right, let's open up our new project. We'll start by removing the default code and replacing it with our animation. I'll delete example.jsinterop, and open up the www root folder and remove the files from there. We'll rename component one to animated beam and remove this…

Contents