Ship faster with goilerplate templUI Pro

Alert

Status message that displays contextual feedback or notifications.

Source Tailwind CSS

Installation

templui add alert

Examples

Destructive

API Reference

Required parameter
Hover for description

Alert

Main alert container component for displaying status messages.

Name Type Default
ID

Unique identifier for the alert element.

string
-
Class

Additional CSS classes to apply to the alert.

string
-
Attributes

Additional HTML attributes to apply to the alert element.

templ.Attributes
-
Variant

Visual style variant. Options: 'default', 'destructive'.

Variant
default

Title

Alert title component for the main heading.

Name Type Default
ID

Unique identifier for the title element.

string
-
Class

Additional CSS classes to apply to the title.

string
-
Attributes

Additional HTML attributes to apply to the title element.

templ.Attributes
-

Description

Alert description component for detailed content.

Name Type Default
ID

Unique identifier for the description element.

string
-
Class

Additional CSS classes to apply to the description.

string
-
Attributes

Additional HTML attributes to apply to the description element.

templ.Attributes
-
Axel Adrian