CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
367 stars 62 forks source link

RadioButtonGroup prototype #249

Closed danielchalmers closed 10 months ago

danielchalmers commented 11 months ago

I made this prototype for #232 based on the MudRadio* code. It's rough around the edges (styling should be in its own CSS etc) but partly functional. Wanted to share anyway to see if you thought I was on the right track!

<div class="d-flex flex-grow-1">
    <MudRadioButtonGroup @bind-SelectedOption="DataPoint.ScaleIndex">
        @foreach (var i in Enumerable.Range(1, 5))
        {
            <MudRadioButton T="int" Color="Color.Primary">@i</MudRadioButton>
        }
    </MudRadioButtonGroup>
</div>

Animation

I made it for an app, so it's more to my spec than what was suggested in the comments. No hard feelings if you'd rather take it in a different direction!

mckaragoz commented 10 months ago

https://github.com/MudBlazor/MudBlazor/pull/7309 I also created a toggle component for core library. If your component has more features that MudToggleGroup doesn't have, sure we can merge your component in extensions.

danielchalmers commented 10 months ago

MudBlazor/MudBlazor#7309 I also created a toggle component for core library. If your component has more features that MudToggleGroup doesn't have, sure we can merge your component in extensions.

yours looks like a much better foundation, good work! I'll build any extensions off that if I need to after it's merged