Message

Description

A component to display a message

The Message component is used to display static messages, alerts, or empty states. It supports an icon, title, text body, and an optional note area.

It comes with variants for standard, success, warning, and error states.

API reference

class

Message

public class Message : ComponentBase<Message, HTMLDivElement>

An inline informational message strip with predefined tones (info, success, warning, error) and an optional dismiss button.

Namespace
Tesserae
Inheritance
ComponentBase<Message, HTMLDivElement> → Message

Constructors

NameDescription
MessageInitializes a new instance of this class.
Constructor
Message
public Message(string title = null, string message = null)

Initializes a new instance of this class.

Methods

NameDescription
IconConfigures the component to icon.
TitleGets or sets the title of the component.
TextGets or sets the text shown in the component.
NoteConfigures the component to note.
VariantConfigures the component to variant.
RenderRenders the component's root HTML element.
Method
Message.Icon
Overload
Icon(UIcons, string, TextSize)Configures the component to icon.
Icon(Image)Configures the component to icon.
Icon(UIcons, string, TextSize)
public Message Icon(UIcons icon, string color = null, TextSize size = TextSize.Large)

Configures the component to icon.

Parameters

icon UIcons
color string
size TextSize
Icon(Image)
public Message Icon(Image image)

Configures the component to icon.

Parameters

image Image
Method
Message.Title
Overload
Title(string)Gets or sets the title of the component.
Title(IComponent)Gets or sets the title of the component.
Title(string)
public Message Title(string title)

Gets or sets the title of the component.

Parameters

title string
Title(IComponent)
public Message Title(IComponent title)

Gets or sets the title of the component.

Parameters

title IComponent
Method
Message.Text
Overload
Text(string)Gets or sets the text shown in the component.
Text(IComponent)Gets or sets the text shown in the component.
Text(string)
public Message Text(string text)

Gets or sets the text shown in the component.

Parameters

text string
Text(IComponent)
public Message Text(IComponent text)

Gets or sets the text shown in the component.

Parameters

text IComponent
Method
Message.Note
Overload
Note(string)Configures the component to note.
Note(IComponent)Configures the component to note.
Note(string)
public Message Note(string note)

Configures the component to note.

Parameters

note string
Note(IComponent)
public Message Note(IComponent note)

Configures the component to note.

Parameters

note IComponent
Method
Message.Variant
public Message Variant(MessageVariant variant)

Configures the component to variant.

Method
Message.Render
public override HTMLElement Render()

Renders the component's root HTML element.

enum

MessageVariant

public enum MessageVariant
Namespace
Tesserae

Samples

Standard Message (with Note)

Error Message

No Results

See also

© 2026 Curiosity. All rights reserved.