Class TwMessageTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for the chat message row (TwMessage). Override any property to customize message styles globally.
[ExcludeFromCodeCoverage]
public class TwMessageTheme
- Inheritance
-
TwMessageTheme
- Inherited Members
Constructors
TwMessageTheme()
public TwMessageTheme()
Properties
Author
Gets or sets the classes for the author's name.
public required string Author { get; set; }
Property Value
AvatarSpacer
Gets or sets the classes that keep a continued message's content in line with the messages above it, in place of the avatar it does not repeat. Match its width to the avatar's.
public required string AvatarSpacer { get; set; }
Property Value
Base
Gets or sets the classes for the row that holds the avatar and the content column.
public required string Base { get; set; }
Property Value
Content
Gets or sets the classes for the column that holds the header, the content and the footer.
public required string Content { get; set; }
Property Value
Footer
Gets or sets the classes for the footer under the content, such as message actions or a delivery state.
public required string Footer { get; set; }
Property Value
Header
Gets or sets the classes for the header row that holds the author and the time.
public required string Header { get; set; }
Property Value
Timestamp
Gets or sets the classes for the time the message was sent.
public required string Timestamp { get; set; }