JSFiddle - React, Tailwind, and code Playground

by Haze32

HTML

<div class="flag note note--info">
  <div class="flag__image note__icon">
    <i class="fa fa-info"></i>
  </div>
  <div class="flag__body note__text">
    <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry.
      Lorem Ipsum has been the industry's standard dummy text ever since the
      1500s, when an unknown printer took a galley of type and scrambled it to
      make a type specimen book. It has survived not only five centuries, but
      also the leap into electronic typesetting, remaining essentially
      unchanged. It was popularised in the 1960s with the release of Letraset
      sheets containing Lorem Ipsum passages, and more recently with desktop
      publishing software like Aldus PageMaker including versions of Lorem
      Ipsum.
    </p>
  </div>
  <a href="#" class="note__close">
    <i class="fa fa-times"></i>
  </a>
</div>

CSS

.alert {
    padding: 1rem 2rem;
    align-items: center;
    display: flex;
}
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}