JSFiddle - React, Tailwind, and code Playground

by academiax

HTML

<div id="editor-x">

      <div class="loading-spinner">

      </div>
    </div>

CSS

/* Replace with your preferred loading spinner styles */

#editor-x {
  display: flex;
  justify-content: left;
}

.loading-spinner {
  display: block;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid #0061d9;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}