Skip to content

Commit 5e18e56

Browse files
committed
update alert component
1 parent fe8f0bf commit 5e18e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Alert/alert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { getRandomColor } from '@bit/joshk.jotils.get-random-color'
44
import { Label } from '@bit/bit.base-ui.elements.label'
55
import styles from './alert.module.css'
66

7-
export const Alert = ({ text, color }) => {
7+
export const Alert = ({ text, color, ...rest }) => {
88
return (
9-
<Label color={color} className={styles.alert}>
9+
<Label color={color} className={styles.alert} {...rest}>
1010
{text}
1111
</Label>
1212
)

0 commit comments

Comments
 (0)