**Params** BitParams lets you cascade shared parameter objects to compatible components so you can define common defaults once.
**Basic**:
BitText with provided parameters
BitTag with provided parameters
private readonly List basicParams =
[
new BitCardParams { Background = BitColorKind.Tertiary, FullWidth = true, Style = "padding: 3rem" },
new BitTagParams { Color = BitColor.Tertiary, Variant = BitVariant.Fill, Size = BitSize.Large },
new BitTextParams { Typography = BitTypography.H5, Color = BitColor.Secondary, Gutter = true },
];
**Overriding cascaded values**:
BitText with provided and overriden parameters
BitTag with provided and overriden parameters
private readonly List basicParams =
[
new BitCardParams { Background = BitColorKind.Tertiary, FullWidth = true, Style = "padding: 3rem" },
new BitTagParams { Color = BitColor.Tertiary, Variant = BitVariant.Fill, Size = BitSize.Large },
new BitTextParams { Typography = BitTypography.H5, Color = BitColor.Secondary, Gutter = true },
];
**Changing parameter values**:
BitText with provided parameters
BitTag with provided parameters
private bool useAltParameters;
private readonly List basicParams =
[
new BitCardParams { Background = BitColorKind.Tertiary, FullWidth = true, Style = "padding: 3rem" },
new BitTagParams { Color = BitColor.Tertiary, Variant = BitVariant.Fill, Size = BitSize.Large },
new BitTextParams { Typography = BitTypography.H5, Color = BitColor.Secondary, Gutter = true },
];
private readonly List altParams =
[
new BitCardParams { Background = BitColorKind.Tertiary, FullWidth = false, Style = "padding: 1rem" },
new BitTagParams { Color = BitColor.Secondary, Variant = BitVariant.Outline, Size = BitSize.Small },
new BitTextParams { Typography = BitTypography.H4, Color = BitColor.Primary, Gutter = true },
];
**Nesting Params**:
Outer defaults
These tags use the parent BitParams values.
Global
Team
Nested overrides
Inner BitParams changes colors and variants for this scope.
Alert
Highlight
private readonly List nestedParentParams =
[
new BitCardParams { Background = BitColorKind.Tertiary, FullWidth = true, Style = "padding: 1rem" },
new BitTagParams { Color = BitColor.Primary, Variant = BitVariant.Outline, Size = BitSize.Medium },
new BitTextParams { Typography = BitTypography.Body2, Color = BitColor.PrimaryForeground }
];
private readonly List nestedChildParams =
[
new BitCardParams { Background = BitColorKind.Secondary, FullWidth = true, Style = "padding: 0.75rem" },
new BitTagParams { Color = BitColor.Warning, Variant = BitVariant.Fill, Size = BitSize.Small },
new BitTextParams { Typography = BitTypography.Body2, Color = BitColor.Warning }
];