Alerts

Basic Alert

<Alert variant='warning' className="alert alert-warning alert-dismissible fade show" role="alert" show={show} 
     onClick={toggleShow}><strong>Holy guacamole!</strong> You should check in on some of those fields below.
<Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close">
      <i className="bi bi-x"></i></Button>
</Alert>
Default alerts
{Defaultalerts.map((idx, alt1)=>(                                                                       
<Alert variant={idx.class} className="alert" role="alert" key={alt1}>
   {idx.text}
</Alert>
))}
Links in alerts

 {Linkalerts.map((idx, alt2)=>(                                   
<Alert variant={idx.class} className="alert" role="alert" key={alt2}>
{idx.text1} <Link to="#" className="alert-link">{idx.text2}</Link>.{idx.text3} </Alert>
))}
Solid Colored Alerts

 {solidalert.map((idx:any ,alt3:any)=>(
    <Alert variant={idx.class} className="alert alert-dismissible fade show" key={alt3}>
       {idx.text}
        <Button variant=''  type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close" 
         onClick={() => handleRemove(idx.id)}><i className="bi bi-x"></i></Button>
    </Alert> 
    ))}
rounded Alerts

  {outlinealert.map((idx:any, alt4:any)=>(
    <Alert variant={idx.class} className="alert alert- alert-dismissible fade show" key={alt4}>
       {idx.text}
        <Button variant='' type="button" className="btn-close"
        onClick={() => handleRemove1(idx.id)} data-bs-dismiss="alert" aria-label="Close"><i className="bi bi-x"></i></Button>
    </Alert>
    ))}
Solid Alerts With Different Shadows
<Alert variant='solid-primary' className="alert shadow alert-dismissible fade show">
A simple solid primary alert with normal shadow—check it out!
<Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"><i className="bi bi-x"></i></Button>
</Alert>
<Alert variant='solid-primary' className="alert shadow-lg alert-dismissible fade show">
A simple solid primary alert with large shadow—check it out!
<Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"><i className="bi bi-x"></i></Button>
</Alert>
Default Alerts With Different Shadows
<Alert variant='primary' className="alert shadow">A simple primary alert with normal shadow—check it out!</Alert>
<Alert variant='primary' className="alert shadow-lg">A simple primary alert with large shadow—check it out!</Alert>
<Alert variant='secondary' className="alert shadow-sm">A simple secondary alert with small shadow—check it out!</Alert>
<Alert variant='secondary' className="alert shadow">A simple secondary alert with normal shadow—check it out!</Alert>
<Alert variant='secondary' className="alert shadow-lg">A simple secondary alert with large shadow—check it out!</Alert>
Rounded Solid Alerts
{roundedsolidalert.map((idx:any,alt7:any)=>(
<Alert variant={idx.class} className="alert  rounded-pill alert-dismissible fade show" key={alt7}>
   {idx.text}
    <Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"
     onClick={() => handleRemove3(idx.id)}>
        <i className="bi bi-x"></i></Button>
</Alert>
))}
Rounded Outline Alerts
 {roundedoutlinealert.map((idx:any)=>(
<Alert variant={idx.class} className="alert rounded-pill alert-dismissible fade show" key={Math.random()}>
 {idx.text}
 <Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"
  onClick={() => handleRemove4(idx.id)}><i className="bi bi-x"></i></Button>
</Alert>
)}
Rounded Default Alerts
 {roundeddefaultalert.map((idx:any)=>(
<Alert variant={idx.class} className="alert rounded-pill alert-dismissible fade show" key={Math.random()}>
   {idx.text}
    <Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"
    onClick={() => handleRemove5(idx.id)}
    ><i className="bi bi-x"></i></Button>
</Alert>
))}
Rounded Alerts With Custom Close Button
{roundedwithbtnalert.map((idx:any)=>(
<Alert variant={idx.class} className="alert rounded-pill alert-dismissible fade show"key={Math.random()}>
    {idx.text}
    <Button variant='' type="button" className="btn-close custom-close" data-bs-dismiss="alert" aria-label="Close"
     onClick={() => handleRemove6(idx.id)}>
        <i className="bi bi-x"></i></Button>
</Alert>
))}
Alerts with icons
<Alert variant='primary' className="alert d-flex align-items-center" role="alert">
<svg className="flex-shrink-0 me-2 svg-primary" xmlns="http://www.w3.org/2000/svg" height="1.5rem" viewBox="0 0 24 24" width="1.5rem" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
<div>
    An example alert with an icon
</div>
</Alert>
Customized Alerts With SVG's
 <Alert variant='primary' className="alert alert-dismissible fade show custom-alert-icon shadow-sm" role="alert">
 <svg className="me-2 svg-primary" xmlns="http://www.w3.org/2000/svg" height="1.5rem" viewBox="0 0 24 24" width="1.5rem" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
 A customized primary alert with an icon
 <Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"><i className="bi bi-x"></i></Button>
</Alert>
Alerts With Images
 {imagesalert.map((idx:any)=>(
<Alert variant={idx.color} className="alert alert-img alert-dismissible fase show rounded-pill flex-wrap" role="alert" key={Math.random()}>
    <div className="avatar avatar-sm me-3 avatar-rounded">
        <img src={idx.src1} alt="img"/>
    </div>
    <div>A simple {idx.color} alert with image—check it out!</div>
    <Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close" onClick={() => handleRemove8(idx.id)}
    ><i className="bi bi-x"></i></Button>
</Alert>
))}
Alerts With Different size Images
<Alert variant='primary' className="alert alert-img alert-dismissible fase show flex-wrap" role="alert">
<div className="avatar avatar-xs me-3">
    <img src={face1} alt="img"/>
</div>
<div>A simple primary alert with image—check it out!</div>
<Button variant='' type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"><i className="bi bi-x"></i></Button>
</Alert>
Additional content
<Col xl={6}>
 <Alert variant='secondary' className="alert  overflow-hidden p-0" role="alert">
     <div className="p-3 bg-secondary text-fixed-white d-flex justify-content-between">
         <h6 className="aletr-heading mb-0 text-fixed-white">Thank you for reporting this.</h6>
         <Button type="button" variant='' className="btn-close p-0 text-fixed-white" data-bs-dismiss="alert" aria-label="Close"><i className="bi bi-x"></i></Button>
     </div>
     <hr className="my-0"/>
     <div className="p-3">
         <p className="mb-0">We appreciate you to let us know the bug in the template and for warning us about future consequences <Link to="#" className="fw-semibold text-decoration-underline">Visit for support for queries ?</Link></p>
     </div>
 </Alert>
</Col>