I'm using MudBlazor library, and I have this requirement of creating my own <MudSelect> component for one of my commonly used business model. I have a couple of requirements here:
- I can simply write code like
<MySelect />to display all pre-defined<MudSelectItem>and the select action should work for two-way binding; - I can set some common properties inside
MySelectcomponent to make a default appearance; - I can also override those normal
<MudSelect>properties with code like<MySelect Dense="true" />.