Skip to content

Commit

Permalink
Merge pull request #1450 from nsbno/closable-alert-box-props
Browse files Browse the repository at this point in the history
Add box props to ClosableAlert
  • Loading branch information
mar2n authored Jan 3, 2025
2 parents d1e32ac + 5fe5e88 commit 3bf76a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stupid-sloths-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vygruppen/spor-react": patch
---

Add boxProps to ClosaleAlert"
3 changes: 2 additions & 1 deletion packages/spor-react/src/alert/ClosableAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const ClosableAlert = ({
title,
children,
onClose: externalOnClose = () => {},
...boxProps
}: ClosableAlertProps) => {
const { isOpen, onClose } = useDisclosure({ defaultIsOpen: true });
const styles = useMultiStyleConfig("Alert", { variant });
Expand All @@ -56,7 +57,7 @@ export const ClosableAlert = ({
};

return (
<BaseAlert variant={variant}>
<BaseAlert variant={variant} {...boxProps}>
<IconButton
variant="ghost"
size="sm"
Expand Down

0 comments on commit 3bf76a5

Please sign in to comment.