Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tararoutray/e72224f64002815262e2f720fdd5f3ec to your computer and use it in GitHub Desktop.
Save tararoutray/e72224f64002815262e2f720fdd5f3ec to your computer and use it in GitHub Desktop.
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