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
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
| Name | Description |
|---|---|
| Message | Initializes a new instance of this class. |
Methods
| Name | Description |
|---|---|
| Icon | Configures the component to icon. |
| Title | Gets or sets the title of the component. |
| Text | Gets or sets the text shown in the component. |
| Note | Configures the component to note. |
| Variant | Configures the component to variant. |
| Render | Renders the component's root HTML element. |
| Overload | |
|---|---|
| Icon(UIcons, string, TextSize) | Configures the component to icon. |
| Icon(Image) | Configures the component to icon. |
| Overload | |
|---|---|
| Title(string) | Gets or sets the title of the component. |
| Title(IComponent) | Gets or sets the title of the component. |
| Overload | |
|---|---|
| Text(string) | Gets or sets the text shown in the component. |
| Text(IComponent) | Gets or sets the text shown in the component. |
| Overload | |
|---|---|
| Note(string) | Configures the component to note. |
| Note(IComponent) | Configures the component to note. |
public Message Variant(MessageVariant variant)Configures the component to variant.
public enum MessageVariant- Namespace
- Tesserae