Class TwCodeBlockTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for the code block component (TwCodeBlock). Override any property to customize code block styles globally.
[ExcludeFromCodeCoverage]
public class TwCodeBlockTheme
- Inheritance
-
TwCodeBlockTheme
- Inherited Members
Constructors
TwCodeBlockTheme()
public TwCodeBlockTheme()
Properties
Container
Gets or sets the background, border and overflow classes applied to the block's root container.
public required string Container { get; set; }
Property Value
CopyButtonWrapper
Gets or sets the classes for the copy button's wrapper, at the end of the header.
public required string CopyButtonWrapper { get; set; }
Property Value
Header
Gets or sets the classes for the header bar above the code, which holds the title and the copy button.
public required string Header { get; set; }
Property Value
Panel
Gets or sets the classes for the inset panel that holds the highlighted code.
public required string Panel { get; set; }