siemens / ix-blazor

Siemens IX library for Blazor
https://ix.siemens.io/docs/installation/blazor
MIT License
16 stars 10 forks source link

Icon button size #22

Closed VolkerLieber closed 5 months ago

VolkerLieber commented 5 months ago

The documentation defines a size property for icon buttons: (https://ix.siemens.io/docs/controls/button/#properties-ix-icon-button)

The two possible ways, I could think of are:

  public enum IconButtonSize
  {
      _12 = 12,
      _16 = 16,
      _24 = 24
  }

and

/// <value>
///  12 | 16 | 24, default: 24
/// </value>
[Parameter]
public int Size { get; set; } = 24;

What would you prefer or do you know a better way?

yagizhanNY commented 5 months ago

Hello @VolkerLieber, if it's possible we should always go with enums. In my opinion this is much more readable. Thanks for contribution!