Alert

An inline message: title, text, an icon of the registry, the color variants and an optional close button.

Source on GitHub

raylang 1.27.37 is out: run ray upgrade. ray-remote 0.4.1 is ready to publish. 64 MB left on the build volume. The signing key was not found. A quiet note without icon nor title.
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-alert> · RayAlert

Announced as an alert. The icon follows the color (info, circle-check, alert-triangle, circle-x) unless icon or slot=icon.

PropertyAttributeTypeDefaultDescription
labellabelstringTitle.
colorcolor reflectsstringA palette color or any CSS color.
variantvariant reflectslight | filled | outline | default | transparentlightVisual style.
radiusradiusxs | sm | md | lg | xlCorner radius.
iconicon reflectsstringA registered icon name, or none.
closableclosable reflectsbooleanA close button; closing hides the alert (cancel ray-close to keep it).
closeLabelclose-labelstringDismiss (text alert.close)Accessible name of the close button.
EventDescription
ray-closeThe close button was pressed; cancelable.
SlotDescription
(default)Text.
iconA custom icon.
PartDescription
alertThe box.
closeThe close button.

Texts

What it writes itself, in English; setStrings() translates them (Getting started: Languages).

KeyEnglish
alert.closeDismiss