jsakamoto / BlazingStory

The clone of "Storybook" for Blazor, a frontend workshop for building UI components and pages in isolation.
https://jsakamoto.github.io/BlazingStory/
Mozilla Public License 2.0
319 stars 15 forks source link

Improve: Enabled the full usage of RenderFragment #53

Open WimVdSElia opened 3 months ago

WimVdSElia commented 3 months ago

Improve: Enabled the full usage of RenderFragment (note: this is not fully supported with EditForm and/or InputBase).

    <!-- 👍 DO THIS! -->
    ...
    <Story Name="Default">

        <Arguments>
            <Arg For="_ => _.ChildContent" Value="_childContent" />
        </Arguments>

        <Template>
            <MyButton @attributes="context.Args">
            </MyButton>
        </Template>
        ...
@code
{
    RenderFragment _childContent = @<span>Click me</span>;
}

Check the Test => RenderFragmentExtensionsTest

Also Reworked the numbers because the test where not passing => TypeUtilityTest