diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitBarsLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitBarsLoading.razor index 96c2757eb7..a59f9d69b7 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitBarsLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitBarsLoading.razor @@ -2,38 +2,38 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 3; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitCircleLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitCircleLoading.razor index ce5e405e38..8b130fb574 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitCircleLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitCircleLoading.razor @@ -6,22 +6,22 @@ } -
\ No newline at end of file + +
+
+
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDotsRingLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDotsRingLoading.razor index f1f5ad9062..b7c88ee54c 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDotsRingLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDotsRingLoading.razor @@ -2,95 +2,95 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 12; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDualRingLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDualRingLoading.razor index f38aff0f5f..c05fb2ea03 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDualRingLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitDualRingLoading.razor @@ -2,13 +2,13 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitEllipsisLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitEllipsisLoading.razor index afe534744c..36dedc33e4 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitEllipsisLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitEllipsisLoading.razor @@ -2,14 +2,14 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 4; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitGridLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitGridLoading.razor index 71c7b0a0de..a4856faa1c 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitGridLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitGridLoading.razor @@ -2,77 +2,77 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 9; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHeartLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHeartLoading.razor index 61dacc0936..6166925d3b 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHeartLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHeartLoading.razor @@ -2,7 +2,7 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+
+
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHourglassLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHourglassLoading.razor index 3c4ba864ac..5f28a19fc2 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHourglassLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitHourglassLoading.razor @@ -2,14 +2,14 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitLoadingComponentBase.cs b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitLoadingComponentBase.cs index 3d6c5bb692..d27630c319 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitLoadingComponentBase.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitLoadingComponentBase.cs @@ -12,6 +12,26 @@ public class BitLoadingComponentBase : ComponentBase /// [Parameter] public string Color { get; set; } = "#FFFFFF"; + /// + /// Custom CSS class for the root element of the component. + /// + [Parameter] public string? Class { get; set; } + + /// + /// Custom CSS style for the root element of the component. + /// + [Parameter] public string? Style { get; set; } + + /// + /// Custom CSS class for the child element(s) of the component. + /// + [Parameter] public string? ChildClass { get; set; } + + /// + /// Custom CSS style for the child element(s) of the component. + /// + [Parameter] public string? ChildStyle { get; set; } + protected virtual int OriginalSize { get; set; } = 80; protected string Convert(double value) diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRingLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRingLoading.razor index 215f9ebf1d..f1e5e26a5d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRingLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRingLoading.razor @@ -2,14 +2,14 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 4; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRippleLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRippleLoading.razor index 196b97b4bc..c889dc5f98 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRippleLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRippleLoading.razor @@ -2,26 +2,26 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+
+
+
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRollerLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRollerLoading.razor index 22d5d9dca5..d61d50de43 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRollerLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitRollerLoading.razor @@ -2,19 +2,19 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 8; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitSpinnerLoading.razor b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitSpinnerLoading.razor index 7dbde25e05..67c9221bc9 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitSpinnerLoading.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Loading/BitSpinnerLoading.razor @@ -2,20 +2,19 @@ @inherits BitLoadingComponentBase -
\ No newline at end of file + +
+ @for (int i = 0; i < 12; i++) + { +
+ } +
\ No newline at end of file diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Loading/BitLoadingDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Loading/BitLoadingDemo.razor.cs index a03559e24b..11df34c581 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Loading/BitLoadingDemo.razor.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Loading/BitLoadingDemo.razor.cs @@ -6,10 +6,24 @@ public partial class BitLoadingDemo { new() { - Name = "Size", - Type = "int", - DefaultValue = "64", - Description = "The Size of the loading component in px." + Name = "ChildClass", + Type = "string?", + DefaultValue = "null", + Description = "Custom CSS class for the root element of the component.", + }, + new() + { + Name = "ChildStyle", + Type = "string?", + DefaultValue = "null", + Description = "Custom CSS style for the root element of the component.", + }, + new() + { + Name = "Class", + Type = "string?", + DefaultValue = "null", + Description = "Custom CSS class for the root element of the component.", }, new() { @@ -17,6 +31,20 @@ public partial class BitLoadingDemo Type = "string", DefaultValue = "#FFFFFF", Description = "The Color of the loading component compatible with colors in CSS." + }, + new() + { + Name = "Size", + Type = "int", + DefaultValue = "64", + Description = "The Size of the loading component in px." + }, + new() + { + Name = "Style", + Type = "string?", + DefaultValue = "null", + Description = "Custom CSS style for the root element of the component.", } };