Components
Loading preview...
"use client";
import React from "react";
export default function Example() {
return (
<div className="flex items-center justify-between text-blue-600 max-w-80 w-full shadow bg-white h-10 rounded">
{/* left accent bar */}
<div className="h-full w-1.5 bg-blue-600" />
{/* icon + text */}
<div className="flex items-center px-3">
<svg
width="20"
height="20"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
className="icon line"
>
<path
d="M11.95 16.5h.1"
style={{
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"
style={{
fill: "none",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: 1.5,
}}
/>
</svg>
<p className="text-sm ml-2">
Success! Your task is fully completed.
</p>
</div>
{/* close button */}
<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"
>
<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...