DavidVollmers / Ignis

The Blazor framework for building modern web applications.
https://ignis.dvolper.dev
MIT License
148 stars 8 forks source link

add Disabled to RadioGroupOption #59

Open NathanVG opened 4 weeks ago

NathanVG commented 4 weeks ago

Is there a way to disable RadioGroupOptions?

For instance I'm making a component to change the status of an item, in case certain details are not filled in I want to disable certain status options, but still display them. It does not seem a "disabled" prop is available (unless I'm missing something).

DavidVollmers commented 3 weeks ago

Currently there is no Disabled attribute, but it makes sense to add one.

Maybe I will find some time over the next week to implement this (should be rather easy), but feel free to also try yourself and open a PR. You basically want to just add it here: https://github.com/DavidVollmers/Ignis/blob/master/packages/Tailwind/Ignis.Components.HeadlessUI/RadioGroupOption.cs

DavidVollmers commented 3 weeks ago

FYI: I started working on this to introduce the IsDisabled attribute on all components where it also exists in headless UI: https://github.com/DavidVollmers/Ignis/tree/features/disabled-attribute