Skip to content

Commit

Permalink
fix: Add className prop to Alert component
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlfischer committed Jul 24, 2024
1 parent 5d817a0 commit 257c60d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ 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 (
<div
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}
>
Expand Down

0 comments on commit 257c60d

Please sign in to comment.