- Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
-
+ Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
+
+ Style="border-radius: 1rem; font-weight:bold" />
+
+
Styles & Classes:
+
+
+
+
-
-
Styles & Classes:
-
-
- @if (isDismissed2 is false)
- {
-
- }
-
- @if (isDismissed3 is false)
- {
-
- }
-
-
-
- Dismissed, click to reset
-
\ No newline at end of file
diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.cs
index b448e19f92..883172f562 100644
--- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.cs
+++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.cs
@@ -21,6 +21,15 @@ public partial class BitTagDemo
Href = "#tag-class-styles"
},
new()
+ {
+ Name = "Color",
+ Type = "BitColor?",
+ DefaultValue = "null",
+ Description = "The general color of the tag.",
+ LinkType = LinkType.Link,
+ Href = "#color-enum"
+ },
+ new()
{
Name = "IconName",
Type = "string?",
@@ -42,15 +51,6 @@ public partial class BitTagDemo
Description = "Dismiss button click event, if set the dismiss icon will show up."
},
new()
- {
- Name = "Severity",
- Type = "BitSeverity?",
- DefaultValue = "null",
- Description = "The severity of the tag.",
- LinkType = LinkType.Link,
- Href = "#severity-enum"
- },
- new()
{
Name = "Styles",
Type = "BitTagClassStyles?",
@@ -93,13 +93,6 @@ public partial class BitTagDemo
Description = "Custom CSS classes/styles for the root element of the BitTag."
},
new()
- {
- Name = "Content",
- Type = "string?",
- DefaultValue = "null",
- Description = "Custom CSS classes/styles for the content of the BitTag."
- },
- new()
{
Name = "Text",
Type = "string?",
@@ -135,67 +128,85 @@ public partial class BitTagDemo
[
new()
{
- Id = "variant-enum",
- Name = "BitVariant",
- Description = "Determines the variant of the content that controls the rendered style of the corresponding element(s).",
+ Id = "color-enum",
+ Name = "BitColor",
+ Description = "Defines the general colors available in the bit BlazorUI.",
Items =
[
new()
{
- Name= "Fill",
- Description="Fill styled variant.",
+ Name= "Primary",
+ Description="Info Primary general color.",
Value="0",
},
new()
{
- Name= "Outline",
- Description="Outline styled variant.",
+ Name= "Secondary",
+ Description="Secondary general color.",
Value="1",
},
new()
{
- Name= "Text",
- Description="Text styled variant.",
+ Name= "Tertiary",
+ Description="Tertiary general color.",
Value="2",
- }
- ]
- },
- new()
- {
- Id = "severity-enum",
- Name = "BitSeverity",
- Description = "",
- Items =
- [
+ },
new()
{
Name= "Info",
- Description="Info styled tag.",
- Value="0",
+ Description="Info general color.",
+ Value="3",
},
new()
{
Name= "Success",
- Description="Success styled tag.",
- Value="1",
+ Description="Success general color.",
+ Value="4",
},
new()
{
Name= "Warning",
- Description="Warning styled tag.",
- Value="2",
+ Description="Warning general color.",
+ Value="5",
},
new()
{
Name= "SevereWarning",
- Description="Severe Warning styled tag.",
- Value="3",
+ Description="SevereWarning general color.",
+ Value="6",
},
new()
{
Name= "Error",
- Description="Error styled tag.",
- Value="4",
+ Description="Error general color.",
+ Value="7",
+ }
+ ]
+ },
+ new()
+ {
+ Id = "variant-enum",
+ Name = "BitVariant",
+ Description = "Determines the variant of the content that controls the rendered style of the corresponding element(s).",
+ Items =
+ [
+ new()
+ {
+ Name= "Fill",
+ Description="Fill styled variant.",
+ Value="0",
+ },
+ new()
+ {
+ Name= "Outline",
+ Description="Outline styled variant.",
+ Value="1",
+ },
+ new()
+ {
+ Name= "Text",
+ Description="Text styled variant.",
+ Value="2",
}
]
},
@@ -204,35 +215,21 @@ public partial class BitTagDemo
private bool isDismissed;
- private bool isDismissed2;
- private bool isDismissed3;
private readonly string example1RazorCode = @"
-
";
+
";
private readonly string example2RazorCode = @"
-
-
+
+
";
private readonly string example3RazorCode = @"
-
-
";
+
";
private readonly string example4RazorCode = @"
-
-
";
-
- private readonly string example5RazorCode = @"
-
-
";
-
- private readonly string example6RazorCode = @"
-
";
-
- private readonly string example7RazorCode = @"
@if (isDismissed is false)
{
isDismissed = true"" />
@@ -241,31 +238,43 @@ public partial class BitTagDemo
isDismissed = false"">
Dismissed, click to reset
";
- private readonly string example7CsharpCode = @"
+ private readonly string example4CsharpCode = @"
private bool isDismissed;";
- private readonly string example8RazorCode = @"
-
-
-
+ private readonly string example5RazorCode = @"
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-";
+
+
+
- private readonly string example9RazorCode = @"
+
+
+
+
+
+
+
+
+
+
+";
+
+ private readonly string example6RazorCode = @"
Custom content
@@ -273,7 +282,7 @@ public partial class BitTagDemo
";
- private readonly string example10RazorCode = @"
+ private readonly string example7RazorCode = @"
+
-@if (isDismissed2 is false)
-{
- isDismissed2 = true""
- Styles=""@(new() { Root = ""border-color: darkblue; border-width: 0.25rem;"",
- Text = ""color: darkblue; font-weight: 600;"",
- DismissIcon = ""color: darkblue; font-weight: 600;"" })"" />
-}
-@if (isDismissed3 is false)
-{
- isDismissed3 = true""
- Variant=""BitVariant.Outline""
- Classes=""@(new() { Root = ""custom-root"",
- Icon = ""custom-icon"",
- DismissButton = ""custom-dismiss"" })"" />
-}
+
- isDismissed2 = isDismissed3 = false"">
- Dismissed, click to reset
-";
- private readonly string example10CsharpCode = @"
-private bool isDismissed2;
-private bool isDismissed3;";
+";
}
diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.scss b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.scss
index c32a69f983..02f448dd03 100644
--- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.scss
+++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Tag/BitTagDemo.razor.scss
@@ -1,16 +1,4 @@
-.tags-container {
- gap: 0.5rem;
- display: flex;
- flex-flow: row wrap;
- align-items: flex-start;
-}
-
-.tags-container-grid {
- gap: 0.5rem;
- display: grid;
-}
-
-::deep {
+::deep {
.custom-class {
border-radius: 0.25rem;
box-shadow: aqua 0 0 0.5rem;
@@ -27,10 +15,4 @@
font-size: 1.25rem;
font-weight: bolder;
}
-
- .custom-dismiss {
- margin: 0.25rem;
- border-radius: 50%;
- border: 1px solid mediumpurple;
- }
}
\ No newline at end of file