Skip to content

Commit

Permalink
Merge pull request #136 from abusix/pla-1236-alert-classname-prop-bre…
Browse files Browse the repository at this point in the history
…aks-design

fix: Add className prop to Alert component
  • Loading branch information
mnlfischer authored Jul 24, 2024
2 parents 5d817a0 + 257c60d commit 338fad1
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 338fad1

Please sign in to comment.