Skip to content

Commit

Permalink
Merge pull request #23 from VolkerLieber/master
Browse files Browse the repository at this point in the history
Implement IconButton size
  • Loading branch information
yagizhanNY authored Feb 2, 2024
2 parents 7fb7bda + 4d9a762 commit d57f33e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SiemensIXBlazor/Components/Button/IconButton.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ color="@Color"
icon="@Icon"
oval="@Oval"
loading="@Loading"
data-tooltip="@DataTooltip">
data-tooltip="@DataTooltip"
size="@Size">
</ix-icon-button>
2 changes: 2 additions & 0 deletions SiemensIXBlazor/Components/Button/IconButton.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public partial class IconButton
[Parameter]
public bool? Oval { get; set; }
[Parameter]
public IconButtonSize Size { get; set; } = IconButtonSize._24;
[Parameter]
public bool Selected { get; set; } = false;
[Parameter]
public string DataTooltip { get; set; } = string.Empty;
Expand Down
9 changes: 9 additions & 0 deletions SiemensIXBlazor/Enums/Button/IconButtonSize.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SiemensIXBlazor.Enums.Button
{
public enum IconButtonSize
{
_12 = 12,
_16 = 16,
_24 = 24
}
}

0 comments on commit d57f33e

Please sign in to comment.