MudBlazor/MudBlazor

Add Label property to MudMenuItem

Aperta

#8064 aperta il 19 gen 2024

 (1 commento) (0 reazioni) (1 assegnatario)C# (1631 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (10.394 stelle)
Metriche merge PR
 (Merge medio 6g 6h) (108 PR mergiate in 30 g)

Descrizione

Feature request type

Enhance component

Component name

MudMenuItem

Is your feature request related to a problem?

No response

Describe the solution you'd like

It would be nice to have Label property in MudMenuItem, for instance:

<MudMenuItem>From child</MudMenuItem> @* powerful and flexible *@
<MudMenuItem Label="From label" /> @* not supported today *@

This addition would align with the design of other components, such as MudCheckBox:

<MudCheckBox T="bool">From child</MudCheckBox> @* powerful and flexible *@
<MudCheckBox T="bool" Label="From label" /> @* short and sweet *@

Note, that MudListItem uses Text property. Maybe standardisation across components should be considered?

<MudListItem>From child</MudListItem>
<MudListItem Text="From text" />

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Guida contributor