We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8f0bf commit 5e18e56Copy full SHA for 5e18e56
src/components/Alert/alert.js
@@ -4,9 +4,9 @@ import { getRandomColor } from '@bit/joshk.jotils.get-random-color'
4
import { Label } from '@bit/bit.base-ui.elements.label'
5
import styles from './alert.module.css'
6
7
-export const Alert = ({ text, color }) => {
+export const Alert = ({ text, color, ...rest }) => {
8
return (
9
- <Label color={color} className={styles.alert}>
+ <Label color={color} className={styles.alert} {...rest}>
10
{text}
11
</Label>
12
)
0 commit comments