Alert gallery
Feedback
Alert gallery
Heads up
You can now publish machines to the edge network.
Deployed
checkout@2.1.0 is live — 1.2 kb gzipped.
Breaking change in 2.0
The send() API now returns a promise — update your callers.
Type error
paying.fail → "falied" — did you mean "failed"?
Four alert variants — default, success, warning, destructive — in a 2-column grid.
alert · gridimport { Grid } from "@/components/ui/grid"
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert"
export function AlertGallery() {
return (
<Grid className="grid-cols-2 gap-3">
<Alert>
<AlertTitle>Heads up</AlertTitle>
<AlertDescription>You can now publish machines to the edge network.</AlertDescription>
</Alert>
<Alert variant="success">
<AlertTitle>Deployed</AlertTitle>
<AlertDescription>checkout@2.1.0 is live — 1.2 kb gzipped.</AlertDescription>
</Alert>
<Alert variant="warning">
<AlertTitle>Breaking change in 2.0</AlertTitle>
<AlertDescription>The send() API now returns a promise — update your callers.</AlertDescription>
</Alert>
<Alert variant="destructive">
<AlertTitle>Type error</AlertTitle>
<AlertDescription>paying.fail → "falied" — did you mean "failed"?</AlertDescription>
</Alert>
</Grid>
)
}
ui26/react
<script lang="ts">
import Grid from "$lib/components/ui/grid.svelte"
import Alert from "$lib/components/ui/alert.svelte"
import AlertTitle from "$lib/components/ui/alert-title.svelte"
import AlertDescription from "$lib/components/ui/alert-description.svelte"
</script>
<Grid class="grid-cols-2 gap-3">
<Alert>
<AlertTitle>Heads up</AlertTitle>
<AlertDescription>You can now publish machines to the edge network.</AlertDescription>
</Alert>
<Alert variant="success">
<AlertTitle>Deployed</AlertTitle>
<AlertDescription>checkout@2.1.0 is live — 1.2 kb gzipped.</AlertDescription>
</Alert>
<Alert variant="warning">
<AlertTitle>Breaking change in 2.0</AlertTitle>
<AlertDescription>The send() API now returns a promise — update your callers.</AlertDescription>
</Alert>
<Alert variant="destructive">
<AlertTitle>Type error</AlertTitle>
<AlertDescription>paying.fail → "falied" — did you mean "failed"?</AlertDescription>
</Alert>
</Grid>
ui26/svelte
---
import Grid from "@/components/ui/grid.astro"
import Alert from "@/components/ui/alert.astro"
import AlertTitle from "@/components/ui/alert-title.astro"
import AlertDescription from "@/components/ui/alert-description.astro"
---
<Grid class="grid-cols-2 gap-3">
<Alert>
<AlertTitle>Heads up</AlertTitle>
<AlertDescription>You can now publish machines to the edge network.</AlertDescription>
</Alert>
<Alert variant="success">
<AlertTitle>Deployed</AlertTitle>
<AlertDescription>checkout@2.1.0 is live — 1.2 kb gzipped.</AlertDescription>
</Alert>
<Alert variant="warning">
<AlertTitle>Breaking change in 2.0</AlertTitle>
<AlertDescription>The send() API now returns a promise — update your callers.</AlertDescription>
</Alert>
<Alert variant="destructive">
<AlertTitle>Type error</AlertTitle>
<AlertDescription>paying.fail → "falied" — did you mean "failed"?</AlertDescription>
</Alert>
</Grid>
ui26/astro
{
"root": "grid",
"elements": {
"grid": {
"type": "Grid",
"props": {
"className": "grid-cols-2 gap-3"
},
"children": [
"a1",
"a2",
"a3",
"a4"
]
},
"a1": {
"type": "Alert",
"props": {},
"children": [
"a1t",
"a1d"
]
},
"a1t": {
"type": "AlertTitle",
"props": {
"text": "Heads up"
},
"children": []
},
"a1d": {
"type": "AlertDescription",
"props": {
"text": "You can now publish machines to the edge network."
},
"children": []
},
"a2": {
"type": "Alert",
"props": {
"variant": "success"
},
"children": [
"a2t",
"a2d"
]
},
"a2t": {
"type": "AlertTitle",
"props": {
"text": "Deployed"
},
"children": []
},
"a2d": {
"type": "AlertDescription",
"props": {
"text": "checkout@2.1.0 is live — 1.2 kb gzipped."
},
"children": []
},
"a3": {
"type": "Alert",
"props": {
"variant": "warning"
},
"children": [
"a3t",
"a3d"
]
},
"a3t": {
"type": "AlertTitle",
"props": {
"text": "Breaking change in 2.0"
},
"children": []
},
"a3d": {
"type": "AlertDescription",
"props": {
"text": "The send() API now returns a promise — update your callers."
},
"children": []
},
"a4": {
"type": "Alert",
"props": {
"variant": "destructive"
},
"children": [
"a4t",
"a4d"
]
},
"a4t": {
"type": "AlertTitle",
"props": {
"text": "Type error"
},
"children": []
},
"a4d": {
"type": "AlertDescription",
"props": {
"text": "paying.fail → \"falied\" — did you mean \"failed\"?"
},
"children": []
}
}
}
ui26/json-render