Skip to content

Commit 77d671a

Browse files
authored
add other props passthrough for Alert (#41)
1 parent c606a01 commit 77d671a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.3.0",
2+
"version": "0.3.1",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

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)