JSFiddle - React, Tailwind, and code Playground

by HemalathaThanigaivel

HTML

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>



<div class="toast-container">
  <div class="toast failure">
                <div class="toast-body bg-danger d-flex ">
                    <div>
                    <i class="fa fa-check"></i>
                        <!-- <i class="far fa-times-circle text-white " style="font-size:50px;"></i> -->
                    </div>
                    <div class="pl-3 text-white">
                        <h4 class="mb-0" style="font-weight:bold;">Toast hjgjhj jghkhkjhkj kjbmnbnm bnbnb bhgyg hbhhui </h4>
                    </div>
                </div>
            </div>
</div>

CSS

/* .toast-container {
  pointer-events: none;
  position: fixed;
  z-index: 999999;
} */