Noora.Alert (noora v0.81.1)

Copy Markdown

An alert component.

Example

<.alert status="success" title="Operation completed successfully" />

Summary

Functions

alert(assigns)

Attributes

  • id (:string) - Defaults to nil.
  • type (:string) - The type of alert. Defaults to "primary". Must be one of "primary", or "secondary".
  • status (:string) (required) - The status of the alert. Must be one of "information", "warning", "error", or "success".
  • size (:string) - The size of the alert. Defaults to "medium". Must be one of "small", "medium", or "large".
  • dismissible (:boolean) - Whether the alert can be dismissed. Defaults to false.
  • show_icon (:boolean) - Whether to show the status icon. Defaults to true.
  • title (:string) (required) - The title of the alert.
  • description (:string) - The description of the alert. Only shown if size is large. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block - Rich HTML description. Takes precedence over the description attribute when provided.
  • action