@if (!String.IsNullOrEmpty(Image))
{
- if (!String.IsNullOrEmpty(Alt))
+ if (!String.IsNullOrEmpty(ImageAltText))
{
-
+
}
else
{
diff --git a/src/Connected.Components/Components/Avatar/Avatar.razor.cs b/src/Connected.Components/Components/Avatar/Avatar.razor.cs
index 500cae5..d42775c 100644
--- a/src/Connected.Components/Components/Avatar/Avatar.razor.cs
+++ b/src/Connected.Components/Components/Avatar/Avatar.razor.cs
@@ -7,88 +7,87 @@ namespace Connected.Components;
partial class Avatar : UIComponent, IDisposable
{
- [CascadingParameter] protected AvatarGroup AvatarGroup { get; set; }
- protected string Classname =>
- new CssBuilder("avatar")
- .AddClass($"avatar-{Size.ToDescriptionString()}")
- .AddClass($"avatar-rounded", Rounded)
- .AddClass($"avatar-square", Square)
- .AddClass($"avatar-{Variant.ToDescriptionString()}")
- .AddClass($"avatar-{Variant.ToDescriptionString()}-{Color.ToDescriptionString()}")
- .AddClass($"elevation-{Elevation.ToString()}")
- .AddClass(AvatarGroup?.GetAvatarSpacing() ?? new CssBuilder(), AvatarGroup != null)
- .AddClass(Class)
- .Build();
-
- protected string Stylesname =>
- new StyleBuilder()
- .AddStyle(AvatarGroup?.GetAvatarZindex(this) ?? new StyleBuilder(), AvatarGroup != null)
- .AddStyle(Style)
- .Build();
+ [CascadingParameter]
+ protected AvatarGroup? AvatarGroup { get; set; }
+
+ protected CssBuilder CompiledClassList
+ {
+ get
+ {
+ return new CssBuilder("avatar")
+ .AddClass($"avatar-{Size}")
+ .AddClass($"avatar-rounded", Kind == AvatarKind.Rounded)
+ .AddClass($"avatar-square", Kind == AvatarKind.Square)
+ .AddClass($"avatar-{Variant}")
+ .AddClass($"avatar-{Variant}-{Color}")
+ .AddClass($"elevation-{Elevation}")
+ .AddClass(ClassList)
+ .AddClass(AvatarGroup?.GetAvatarSpacing() ?? new CssBuilder(), AvatarGroup != null);
+ }
+ }
+
+ protected StyleBuilder CompiledStyles
+ {
+ get
+ {
+ return new StyleBuilder()
+ .AddStyle(AvatarGroup?.GetAvatarZindex(this) ?? new StyleBuilder(), AvatarGroup is not null);
+ }
+ }
///
- /// The higher the number, the heavier the drop-shadow.
+ /// A space separated list of class names, added on top of the default class list.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Appearance)]
- public int Elevation { set; get; } = 0;
+ public string? ClassList { get; set; }
///
- /// If true, border-radius is set to 0.
+ /// If set (and Image is also set), will add an alt property to the img element
///
[Parameter]
- [Category(CategoryTypes.Avatar.Appearance)]
- public bool Square { get; set; }
+ public string? ImageAltText { get; set; }
///
- /// If true, border-radius is set to the themes default value.
+ /// Child content of the component.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Appearance)]
- public bool Rounded { get; set; }
+ public RenderFragment? ChildContent { get; set; }
///
- /// Link to image, if set a image will be displayed instead of text.
+ /// The color of the component. It supports the theme colors.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Behavior)]
- public string Image { get; set; }
+ public ThemeColor Color { get; set; } = ThemeColor.Default;
///
- /// If set (and Image is also set), will add an alt property to the img element
+ /// The higher the number, the heavier the drop-shadow.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Behavior)]
- public string Alt { get; set; }
+ public int Elevation { set; get; } = 0;
///
- /// The color of the component. It supports the theme colors.
+ /// Link to image, if set a image will be displayed instead of text.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Appearance)]
- public ThemeColor Color { get; set; } = ThemeColor.Default;
+ public string? Image { get; set; }
+
+ ///
+ /// Sets the avatar appearance
+ ///
+ public AvatarKind Kind { get; set; }
///
/// The Size of the MudAvatar.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Appearance)]
public Size Size { get; set; } = Size.Medium;
///
/// The variant to use.
///
[Parameter]
- [Category(CategoryTypes.Avatar.Appearance)]
public Variant Variant { get; set; } = Variant.Filled;
- ///
- /// Child content of the component.
- ///
- [Parameter]
- [Category(CategoryTypes.Avatar.Behavior)]
- public RenderFragment ChildContent { get; set; }
-
protected override void OnInitialized()
{
base.OnInitialized();
@@ -96,13 +95,7 @@ partial class Avatar : UIComponent, IDisposable
AvatarGroup?.AddAvatar(this);
}
- public void Dispose()
- {
- AvatarGroup?.RemoveAvatar(this);
- }
+ public void Dispose() => AvatarGroup?.RemoveAvatar(this);
- internal void ForceRedraw()
- {
- StateHasChanged();
- }
+ internal void ForceRedraw() => StateHasChanged();
}
diff --git a/src/Connected.Components/Components/Avatar/AvatarGroup.razor b/src/Connected.Components/Components/Avatar/AvatarGroup.razor
index b373864..b667de4 100644
--- a/src/Connected.Components/Components/Avatar/AvatarGroup.razor
+++ b/src/Connected.Components/Components/Avatar/AvatarGroup.razor
@@ -1,13 +1,13 @@
@namespace Connected.Components
@inherits UIComponent
-
+
@ChildContent
@if(_avatars.Count > Max)
{
-
+
@($"+{_avatars.Count - Max}")
}
diff --git a/src/Connected.Components/Components/Avatar/AvatarGroup.razor.cs b/src/Connected.Components/Components/Avatar/AvatarGroup.razor.cs
index 226f2bb..d3c338d 100644
--- a/src/Connected.Components/Components/Avatar/AvatarGroup.razor.cs
+++ b/src/Connected.Components/Components/Avatar/AvatarGroup.razor.cs
@@ -8,27 +8,34 @@ namespace Connected.Components;
partial class AvatarGroup : UIComponent
{
private bool _childrenNeedUpdates = false;
-
- protected string Classname =>
- new CssBuilder("avatar-group")
- .AddClass($"avatar-group-outlined", Outlined)
- .AddClass($"avatar-group-outlined-{OutlineColor.ToDescriptionString()}", Outlined)
- .AddClass(Class)
- .Build();
-
- protected string MaxAvatarClassname =>
- new CssBuilder("avatar-group-max-avatar")
- .AddClass($"ms-n{Spacing}")
- .AddClass(MaxAvatarClass)
- .Build();
-
private int _spacing = 3;
+ private List _avatars = new();
+ private CssBuilder CompiledClassList
+ {
+ get
+ {
+ return new CssBuilder("avatar-group")
+ .AddClass($"avatar-group-outlined", Outlined)
+ .AddClass($"avatar-group-outlined-{OutlineColor.ToDescriptionString()}", Outlined)
+ .AddClass(ClassList);
+ }
+ }
+
+ private CssBuilder CompiledMaxAvatarClassList
+ {
+ get
+ {
+ return new CssBuilder("avatar-group-max-avatar")
+ .AddClass($"ms-n{Spacing}")
+ .AddClass(MaxAvatarClass);
+ }
+ }
+
///
/// Spacing between avatars where 0 is none and 16 max.
///
[Parameter]
- [Category(CategoryTypes.AvatarGroup.Behavior)]
public int Spacing
{
get => _spacing;
@@ -42,6 +49,12 @@ partial class AvatarGroup : UIComponent
}
}
+ ///
+ /// A space separated list of class names, added on top of the default class list.
+ ///
+ [Parameter]
+ public string? ClassList { get; set; }
+
///
/// Outlines the grouped avatars to distinguish them, useful when avatars are the same color or uses images.
///
@@ -132,8 +145,6 @@ partial class AvatarGroup : UIComponent
[Category(CategoryTypes.AvatarGroup.Behavior)]
public RenderFragment ChildContent { get; set; }
- internal List _avatars = new();
-
internal void AddAvatar(Avatar avatar)
{
_avatars.Add(avatar);
diff --git a/src/Connected.Components/Components/Avatar/AvatarKind.cs b/src/Connected.Components/Components/Avatar/AvatarKind.cs
new file mode 100644
index 0000000..e0d3195
--- /dev/null
+++ b/src/Connected.Components/Components/Avatar/AvatarKind.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Connected.Components;
+public enum AvatarKind
+{
+ Undefined = 0,
+ Unadorned = 1,
+ Rounded = 2,
+ Square = 3
+}
diff --git a/src/Connected.Components/Components/Badge/Badge.razor b/src/Connected.Components/Components/Badge/Badge.razor
index 050e8bc..a43da56 100644
--- a/src/Connected.Components/Components/Badge/Badge.razor
+++ b/src/Connected.Components/Components/Badge/Badge.razor
@@ -1,8 +1,8 @@
@namespace Connected.Components
@inherits UIComponent
-
- @ChildContent
+
+ @ChildContent
@if (Visible)
{
diff --git a/src/Connected.Components/Components/Badge/Badge.razor.cs b/src/Connected.Components/Components/Badge/Badge.razor.cs
index 53b7278..ae37399 100644
--- a/src/Connected.Components/Components/Badge/Badge.razor.cs
+++ b/src/Connected.Components/Components/Badge/Badge.razor.cs
@@ -9,9 +9,9 @@ namespace Connected.Components;
public partial class Badge : UIComponent
{
- protected string Classname =>
+ protected string CompiledClassList =>
new CssBuilder("badge-root")
- .AddClass(Class)
+ .AddClass(AdditionalClassList)
.Build();
protected string WrapperClass =>
new CssBuilder("badge-wrapper")
diff --git a/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor b/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor
index 5525ef1..6d5e759 100644
--- a/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor
+++ b/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor
@@ -7,7 +7,7 @@
}
-
+
@if (MaxItems is not null && Collapsed && Items.Count > MaxItems)
{
diff --git a/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor.cs b/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor.cs
index 1808dbc..e0b5a99 100644
--- a/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor.cs
+++ b/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor.cs
@@ -51,7 +51,7 @@ public partial class Breadcrumbs : UIComponent
public bool Collapsed { get; private set; } = true;
private string Classname => new CssBuilder("breadcrumbs")
.AddClass("typography-body1")
- .AddClass(Class)
+ .AddClass(AdditionalClassList)
.Build();
internal static string GetItemClassname(BreadcrumbItem item)
diff --git a/src/Connected.Components/Components/Button/Button.razor b/src/Connected.Components/Components/Button/Button.razor
index 4c36931..b3fc015 100644
--- a/src/Connected.Components/Components/Button/Button.razor
+++ b/src/Connected.Components/Components/Button/Button.razor
@@ -3,29 +3,13 @@
@inherits ButtonBase
-
- @if (!string.IsNullOrWhiteSpace(StartIcon))
- {
-
-
-
- }
- @ChildContent
- @if (!string.IsNullOrWhiteSpace(@EndIcon))
- {
-
-
-
- }
-
+ HtmlTag="@HtmlTag"
+ Class="@CompiledClassList"
+ @attributes="CustomAttributes"
+ @onclick="OnClickHandler"
+ type="@ButtonType.ToDescriptionString()"
+ disabled="@Disabled">
+
+ @ChildContent
+
diff --git a/src/Connected.Components/Components/Button/Button.razor.cs b/src/Connected.Components/Components/Button/Button.razor.cs
index a0fb2f8..84164ad 100644
--- a/src/Connected.Components/Components/Button/Button.razor.cs
+++ b/src/Connected.Components/Components/Button/Button.razor.cs
@@ -7,90 +7,47 @@ namespace Connected.Components;
public partial class Button : ButtonBase
{
- protected string Classname =>
- new CssBuilder("button-root mud-button")
- .AddClass($"button-{Variant.ToDescriptionString()}")
- .AddClass($"button-{Variant.ToDescriptionString()}-{Color.ToDescriptionString()}")
- .AddClass($"button-{Variant.ToDescriptionString()}-size-{Size.ToDescriptionString()}")
- .AddClass($"width-full", FullWidth)
- .AddClass($"ripple", !DisableRipple)
- .AddClass($"button-disable-elevation", DisableElevation)
- .AddClass(Class)
- .Build();
-
- protected string StartIconClass =>
- new CssBuilder("button-icon-start")
- .AddClass($"button-icon-size-{Size.ToDescriptionString()}")
- .AddClass(IconClass)
- .Build();
-
- protected string EndIconClass =>
- new CssBuilder("button-icon-end")
- .AddClass($"button-icon-size-{Size.ToDescriptionString()}")
- .AddClass(IconClass)
- .Build();
-
///
- /// Icon placed before the text if set.
- ///
- [Parameter]
- [Category(CategoryTypes.Button.Behavior)]
- public string StartIcon { get; set; }
-
- ///
- /// Icon placed after the text if set.
+ /// Child content of component.
///
[Parameter]
- [Category(CategoryTypes.Button.Behavior)]
- public string EndIcon { get; set; }
+ public RenderFragment? ChildContent { get; set; }
- ///
- /// The color of the icon. It supports the theme colors.
- ///
- [Parameter]
- [Category(CategoryTypes.Button.Appearance)]
- public ThemeColor IconColor { get; set; } = ThemeColor.Inherit;
+ private CssBuilder CompiledClassList
+ {
+ get
+ {
+ return new CssBuilder("button-root mud-button")
+ .AddClass($"button-{Variant}")
+ .AddClass($"button-{Variant}-{Color}")
+ .AddClass($"button-{Variant}-size-{Size}")
+ .AddClass($"ripple", !CanRipple)
+ .AddClass($"elevation-{Elevation}")
+ .AddClass(ClassList);
+ }
+ }
///
- /// Icon class names, separated by space
+ /// A space separated list of class names, added on top of the default class list.
///
[Parameter]
- [Category(CategoryTypes.Button.Appearance)]
- public string IconClass { get; set; }
+ public string? ClassList { get; set; }
///
/// The color of the component. It supports the theme colors.
///
[Parameter]
- [Category(CategoryTypes.Button.Appearance)]
public ThemeColor Color { get; set; } = ThemeColor.Default;
///
/// The Size of the component.
///
[Parameter]
- [Category(CategoryTypes.Button.Appearance)]
public Size Size { get; set; } = Size.Medium;
///
/// The variant to use.
///
[Parameter]
- [Category(CategoryTypes.Button.Appearance)]
public Variant Variant { get; set; } = Variant.Text;
-
- ///
- /// If true, the button will take up 100% of available width.
- ///
- [Parameter]
- [Category(CategoryTypes.Button.Appearance)]
- public bool FullWidth { get; set; }
-
- ///
- /// Child content of component.
- ///
- [Parameter]
- [Category(CategoryTypes.Button.Behavior)]
- public RenderFragment ChildContent { get; set; }
-
}
diff --git a/src/Connected.Components/Components/Button/ButtonBase.cs b/src/Connected.Components/Components/Button/ButtonBase.cs
index e567e5e..368a942 100644
--- a/src/Connected.Components/Components/Button/ButtonBase.cs
+++ b/src/Connected.Components/Components/Button/ButtonBase.cs
@@ -8,133 +8,73 @@ namespace Connected.Components;
public abstract class ButtonBase : UIComponent
{
+ ///
+ /// Button click event.
+ ///
+ [Parameter]
+ public EventCallback OnClick { get; set; }
+
///
/// Potential activation target for this button. This enables RenderFragments with user-defined
/// buttons which will automatically activate the intended functionality.
///
- [CascadingParameter] protected IActivatable Activateable { get; set; }
+ [CascadingParameter]
+ protected IActivatable Activateable { get; set; }
///
/// The HTML element that will be rendered in the root by the component
/// By default, is a button
///
[Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
public string HtmlTag { get; set; } = "button";
///
/// The button Type (Button, Submit, Refresh)
///
[Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
public ButtonType ButtonType { get; set; }
- ///
- /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where
- ///
- [Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
- public string Href { get; set; }
- ///
- /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where (Obsolete replaced by Href)
- ///
-
- [Obsolete("Use Href Instead.", false)]
- [Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
- public string Link
- {
- get => Href;
- set => Href = value;
- }
-
- ///
- /// The target attribute specifies where to open the link, if Link is specified. Possible values: _blank | _self | _parent | _top | framename
- ///
- [Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
- public string Target { get; set; }
-
///
/// If true, the button will be disabled.
///
[Parameter]
- [Category(CategoryTypes.Button.Behavior)]
public bool Disabled { get; set; }
///
- /// If true, no drop-shadow will be used.
+ /// The higher the number, the heavier the drop-shadow. 0 for no shadow.
///
[Parameter]
- [Category(CategoryTypes.Button.Appearance)]
- public bool DisableElevation { get; set; }
+ public int Elevation { set; get; } = 0;
///
/// If true, disables ripple effect.
///
[Parameter]
- [Category(CategoryTypes.Button.Appearance)]
- public bool DisableRipple { get; set; }
+ public bool CanRipple { get; set; }
///
/// Command executed when the user clicks on an element.
///
[Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
- public ICommand Command { get; set; }
+ public ICommand? Command { get; set; }
///
/// Command parameter.
///
[Parameter]
- [Category(CategoryTypes.Button.ClickAction)]
- public object CommandParameter { get; set; }
+ public object? CommandParameters { get; set; }
- ///
- /// Button click event.
- ///
- [Parameter]
- public EventCallback OnClick { get; set; }
-
- protected async Task OnClickHandler(MouseEventArgs ev)
+ protected async Task OnClickHandler(MouseEventArgs e)
{
if (Disabled)
return;
- await OnClick.InvokeAsync(ev);
- if (Command?.CanExecute(CommandParameter) ?? false)
- {
- Command.Execute(CommandParameter);
- }
- Activateable?.Activate(this, ev);
- }
- protected override void OnInitialized()
- {
- SetDefaultValues();
- }
-
- protected override void OnParametersSet()
- {
- //if params change, must set default values again
- SetDefaultValues();
- }
+ await OnClick.InvokeAsync(e);
- //Set the default value for HtmlTag, Link and Target
- private void SetDefaultValues()
- {
- if (Disabled)
- {
- HtmlTag = "button";
- Href = null;
- Target = null;
- return;
- }
+ if (Command?.CanExecute(CommandParameters) ?? false)
+ Command.Execute(CommandParameters);
- // Render an anchor element if Link property is set and is not disabled
- if (!IsNullOrWhiteSpace(Href))
- {
- HtmlTag = "a";
- }
+ Activateable?.Activate(this, e);
}
protected ElementReference _elementReference;
diff --git a/src/Connected.Components/Components/Button/Fab.razor b/src/Connected.Components/Components/Button/Fab.razor
index 83d5535..5a45a55 100644
--- a/src/Connected.Components/Components/Button/Fab.razor
+++ b/src/Connected.Components/Components/Button/Fab.razor
@@ -7,13 +7,9 @@
diff --git a/src/Connected.Components/Components/Button/Fab.razor.cs b/src/Connected.Components/Components/Button/Fab.razor.cs
index b12048e..7633bc4 100644
--- a/src/Connected.Components/Components/Button/Fab.razor.cs
+++ b/src/Connected.Components/Components/Button/Fab.razor.cs
@@ -12,9 +12,7 @@ public partial class Fab : ButtonBase
.AddClass($"fab-extended", !string.IsNullOrEmpty(Label))
.AddClass($"fab-{Color.ToDescriptionString()}")
.AddClass($"fab-size-{Size.ToDescriptionString()}")
- .AddClass($"ripple", !DisableRipple && !Disabled)
- .AddClass($"fab-disable-elevation", DisableElevation)
- .AddClass(Class)
+ .AddClass($"ripple", !CanRipple && !Disabled)
.Build();
///
diff --git a/src/Connected.Components/Components/Button/IconButton.razor b/src/Connected.Components/Components/Button/IconButton.razor
index a096616..0684608 100644
--- a/src/Connected.Components/Components/Button/IconButton.razor
+++ b/src/Connected.Components/Components/Button/IconButton.razor
@@ -6,14 +6,10 @@
@if (!String.IsNullOrEmpty(Icon))
diff --git a/src/Connected.Components/Components/Button/IconButton.razor.cs b/src/Connected.Components/Components/Button/IconButton.razor.cs
index 34fbdbe..701c220 100644
--- a/src/Connected.Components/Components/Button/IconButton.razor.cs
+++ b/src/Connected.Components/Components/Button/IconButton.razor.cs
@@ -14,12 +14,11 @@ public partial class IconButton : ButtonBase
.AddClass($"button-{Variant.ToDescriptionString()}", AsButton)
.AddClass($"button-{Variant.ToDescriptionString()}-{Color.ToDescriptionString()}", AsButton)
.AddClass($"button-{Variant.ToDescriptionString()}-size-{Size.ToDescriptionString()}", AsButton)
- .AddClass($"ripple", !DisableRipple)
- .AddClass($"ripple-icon", !DisableRipple && !AsButton)
+ .AddClass($"ripple", !CanRipple)
+ .AddClass($"ripple-icon", !CanRipple && !AsButton)
.AddClass($"icon-button-size-{Size.ToDescriptionString()}", when: () => Size != Size.Medium)
.AddClass($"icon-button-edge-{Edge.ToDescriptionString()}", when: () => Edge != Edge.False)
- .AddClass($"button-disable-elevation", DisableElevation)
- .AddClass(Class)
+ .AddClass(AdditionalClassList)
.Build();
protected bool AsButton => Variant != Variant.Text;
diff --git a/src/Connected.Components/Components/Button/ToggleIconButton.razor b/src/Connected.Components/Components/Button/ToggleIconButton.razor
index c3d8765..47b3efe 100644
--- a/src/Connected.Components/Components/Button/ToggleIconButton.razor
+++ b/src/Connected.Components/Components/Button/ToggleIconButton.razor
@@ -15,7 +15,6 @@
Edge="Edge"
DisableRipple="DisableRipple"
OnClick="Toggle"
- Class="@Class"
- Style="@Style"
+ Class="@AdditionalClassList"
aria-pressed="@ariaPressedValue"
- @attributes="UserAttributes" />
+ @attributes="CustomAttributes" />
diff --git a/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor b/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor
index 25a7d2d..80188b6 100644
--- a/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor
+++ b/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor
@@ -2,11 +2,11 @@
@inherits UIComponent
-
+
@ChildContent
@{
- if(!UserAttributes.ContainsKey("role"))
- UserAttributes.Add("role", "group");
+ if(!CustomAttributes.ContainsKey("role"))
+ CustomAttributes.Add("role", "group");
}
\ No newline at end of file
diff --git a/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor.cs b/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor.cs
index a2f61c4..0b3519a 100644
--- a/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor.cs
+++ b/src/Connected.Components/Components/ButtonGroup/ButtonGroup.razor.cs
@@ -17,7 +17,7 @@ public partial class ButtonGroup : UIComponent
.AddClass($"button-group-horizontal", !VerticalAlign)
.AddClass($"button-group-disable-elevation", DisableElevation)
.AddClass($"button-group-rtl", RightToLeft)
- .AddClass(Class)
+ .AddClass(AdditionalClassList)
.Build();
diff --git a/src/Connected.Components/Components/Card/Card.razor b/src/Connected.Components/Components/Card/Card.razor
index 97c03f9..6535e65 100644
--- a/src/Connected.Components/Components/Card/Card.razor
+++ b/src/Connected.Components/Components/Card/Card.razor
@@ -2,6 +2,6 @@
@inherits UIComponent
-
+
@ChildContent
diff --git a/src/Connected.Components/Components/Card/Card.razor.cs b/src/Connected.Components/Components/Card/Card.razor.cs
index 2cc04bc..0b954b0 100644
--- a/src/Connected.Components/Components/Card/Card.razor.cs
+++ b/src/Connected.Components/Components/Card/Card.razor.cs
@@ -8,7 +8,7 @@ public partial class Card : UIComponent
{
protected string Classname =>
new CssBuilder("card")
- .AddClass(Class)
+ .AddClass(AdditionalClassList)
.Build();
///
diff --git a/src/Connected.Components/Components/Card/CardActions.razor b/src/Connected.Components/Components/Card/CardActions.razor
index e03ba91..8cdb0a6 100644
--- a/src/Connected.Components/Components/Card/CardActions.razor
+++ b/src/Connected.Components/Components/Card/CardActions.razor
@@ -2,6 +2,6 @@
@inherits UIComponent
-