Created
October 5, 2022 17:14
-
-
Save tararoutray/e72224f64002815262e2f720fdd5f3ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import Alert from "react-bootstrap/Alert"; | |
const AlertDemo = () => { | |
return ( | |
<React.Fragment> | |
{[ | |
'primary', | |
'secondary', | |
'success', | |
'danger', | |
'warning', | |
'info', | |
'light', | |
'dark', | |
].map((variant) => ( | |
<Alert key={variant} variant={variant}> | |
This is a {variant} alert—check it out! | |
</Alert> | |
))} | |
</React.Fragment> | |
); | |
} | |
export default AlertDemo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment