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
Code
Gets or sets the classes for the scrollable code element inside the panel, which is a Tab stop: its keyboard focus ring.
public required string Code { get; set; }
Property Value
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. The title is shown in upper case whether it is the language name or a custom title.
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; }