Tesserae

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.

Constructors

Constructor
Message
public Message(string title = null, string message = null)

Initializes a new instance of this class.

Methods

Method
Message.Icon
public Message Icon(UIcons icon, string color = null, TextSize size = TextSize.Large)

Configures the component to icon.

Method
Message.Icon
public Message Icon(Image image)

Configures the component to icon.

Method
Message.Title
public Message Title(string title)

Gets or sets the title of the component.

Method
Message.Title
public Message Title(IComponent title)

Gets or sets the title of the component.

Method
Message.Text
public Message Text(string text)

Gets or sets the text shown in the component.

Method
Message.Text
public Message Text(IComponent text)

Gets or sets the text shown in the component.

Method
Message.Note
public Message Note(string note)

Configures the component to note.

Method
Message.Note
public Message Note(IComponent note)

Configures the component to note.

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

Samples

Standard Message (with Note)

Error Message

No Results

See also

© 2026 Tesserae. All rights reserved.