From 257c60d1f0c6131ee52554e94cbe539df1cc709f Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 24 Jul 2024 10:43:15 +0200 Subject: [PATCH] fix: Add className prop to Alert component --- src/components/alert/alert.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/alert/alert.tsx b/src/components/alert/alert.tsx index 5dffc56a..70b392f1 100644 --- a/src/components/alert/alert.tsx +++ b/src/components/alert/alert.tsx @@ -31,7 +31,7 @@ export interface AlertProps extends React.ComponentPropsWithoutRef<"div"> { children?: React.ReactNode; } -export const Alert = ({ title, children, intent, ...props }: AlertProps) => { +export const Alert = ({ title, children, intent, className, ...props }: AlertProps) => { const Icon = iconNames[intent]; return ( @@ -39,7 +39,8 @@ export const Alert = ({ title, children, intent, ...props }: AlertProps) => { role="alert" className={classNames( "flex flex-row gap-4 rounded-lg border px-4 py-3 text-neutral-800", - alertVariants[intent] + alertVariants[intent], + className )} {...props} >