Update Callout component with custom border color and background color

This commit is contained in:
Sahil-Sam 2024-08-08 14:26:36 +05:30
parent 651f984e52
commit 1aeea804fb

View file

@ -15,8 +15,8 @@ export function Callout({
return (
<div
className={cn("my-6 flex items-start rounded-md border border-l-4 p-4", {
"border-red-900 bg-red-50": type === "danger",
"border-yellow-900 bg-yellow-50": type === "warning",
"border-[rgb(29,40,58)] ": type === "danger",
"border-[rgb(29,40,58)]": type === "warning",
})}
{...props}
>