<div style="display: grid; gap: 0.75rem">
<ray-alert label="New version available" color="blue" closable>raylang 1.27.37 is out: run <code>ray upgrade</code>.</ray-alert>
<ray-alert label="Build succeeded" color="green" variant="filled">ray-remote 0.4.1 is ready to publish.</ray-alert>
<ray-alert label="Disk almost full" color="yellow" variant="outline">64 MB left on the build volume.</ray-alert>
<ray-alert label="Deploy failed" color="red" variant="default" closable>The signing key was not found.</ray-alert>
<ray-alert color="gray" variant="transparent" icon="none">A quiet note without icon nor title.</ray-alert>
</div>
import { RayAlert } from "@raylang/react";
export function AlertExample() {
return (
<>
<div style={{ display: "grid", gap: "0.75rem" }}>
<RayAlert label="New version available" color="blue" closable>raylang 1.27.37 is out: run <code>ray upgrade</code>.</RayAlert>
<RayAlert label="Build succeeded" color="green" variant="filled">ray-remote 0.4.1 is ready to publish.</RayAlert>
<RayAlert label="Disk almost full" color="yellow" variant="outline">64 MB left on the build volume.</RayAlert>
<RayAlert label="Deploy failed" color="red" variant="default" closable>The signing key was not found.</RayAlert>
<RayAlert color="gray" variant="transparent" icon="none">A quiet note without icon nor title.</RayAlert>
</div>
</>
);
}
<template>
<div style="display: grid; gap: 0.75rem">
<RayAlert label="New version available" color="blue" closable>raylang 1.27.37 is out: run <code>ray upgrade</code>.</RayAlert>
<RayAlert label="Build succeeded" color="green" variant="filled">ray-remote 0.4.1 is ready to publish.</RayAlert>
<RayAlert label="Disk almost full" color="yellow" variant="outline">64 MB left on the build volume.</RayAlert>
<RayAlert label="Deploy failed" color="red" variant="default" closable>The signing key was not found.</RayAlert>
<RayAlert color="gray" variant="transparent" icon="none">A quiet note without icon nor title.</RayAlert>
</div>
</template>