This is a plugin that only has a peer dependency to piral-core
. What piral-blazor
brings to the table is a set of Pilet API extensions that can be used with piral
or piral-core
.
The set includes an Blazor loader and converter for any component registration, as well as a fromBlazor
shortcut together with a blazor-extension
web component.
By default, these API extensions are not integrated in piral
, so you'd need to add them to your Piral instance.
Documentation
The following functions are brought to the Pilet API.
fromBlazor()
Transforms a standard Blazor component into a component that can be used in Piral, essentially wrapping it with a reference to the corresponding converter.
Usage
For authors of pilets
You can use the fromBlazor
function from the Pilet API to convert your Blazor components to components usable by your Piral instance.
Setup and Bootstrapping
For Piral instance developers
Using Blazor with Piral is as simple as installing piral-blazor
.
import { createBlazorApi } from 'piral-blazor';
The integration looks like:
const instance = createInstance({
extendApi: [createBlazorApi()],
});
License
Piral is released using the MIT license. For more information see the license file.