feat(dashboard-v2): add Alert component
This commit is contained in:
parent
be82050b86
commit
60c2d35eb9
|
@ -0,0 +1,9 @@
|
||||||
|
import styled from "styled-components";
|
||||||
|
import cn from "classnames";
|
||||||
|
|
||||||
|
export const Alert = styled.div.attrs(({ $variant }) => ({
|
||||||
|
className: cn("px-3 py-2 sm:px-6 sm:py-4 rounded border", {
|
||||||
|
"bg-red-100 border-red-200 text-error": $variant === "error",
|
||||||
|
"bg-green-100 border-green-200 text-palette-400": $variant === "success",
|
||||||
|
}),
|
||||||
|
}))``;
|
|
@ -0,0 +1 @@
|
||||||
|
export * from "./Alert";
|
Reference in New Issue