Components
Loading preview...
"use client";
import React from "react";
export default function Example() {
return (
<div className="flex items-center justify-between text-red-600 max-w-80 w-full bg-red-600/10 h-10 shadow" role="alert" aria-live="polite">
<div className="h-full w-1.5 bg-red-600" />
<div className="flex items-center">
<svg
width="20"
height="20"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
className="icon line"
aria-hidden="true"
>
<path
d="M11.95 16.5h.1"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.95}
/>
<path
d="M3 12a9 9 0 0 1 9-9h0a9 9 0 0 1 9 9h0a9 9 0 0 1-9 9h0a9 9 0 0 1-9-9m9 0V7"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
/>
</svg>
<p className="text-sm ml-2">Oops! Something went terribly wrong.</p>
</div>
<button
type="button"
aria-label="close"
className="active:scale-90 transition-all mr-3"
>
<svg
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<path
d="M15 5L5 15M5 5L15 15"
stroke="currentColor"
strokeWidth={1.7}
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</button>
</div>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...