Skip to content

Commit eab5147

Browse files
committed
add otherProps passthrough for Alert
1 parent d883620 commit eab5147

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/alert/Alert.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const Alert = ({
5353
onDismissClick,
5454
banner = false,
5555
extra,
56+
...otherProps
5657
}: AlertProps) => {
5758
let variantStyle = useSeverityStyle(variant);
5859

@@ -61,6 +62,7 @@ export const Alert = ({
6162
}
6263
return (
6364
<div
65+
{...otherProps}
6466
css={css`
6567
padding: ${theme.spacing.margin8}px ${theme.spacing.margin16}px;
6668
border-radius: 4px;

0 commit comments

Comments
 (0)