JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>

<div class="container">
  <h2>Modal Example</h2>
  <!-- Trigger the modal with a button -->
  <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

  <!-- Modal -->
  <div class="modal fade" id="myModal" role="dialog" style="width:100%">
    <div class="modal-dialog" style="width: 91%;
">
    
      <!-- Modal content-->
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Drag and Drop</h4>
        </div>
        <div class="modal-body">
          <p>Some text in the modal.</p>
          <p>Some text in the modal.</p><p>Some text in the modal.</p>
          <p>Some text in the modal.</p>
          <p>Some text in the modal.</p>
          <p>Some text in the modal.</p>
          <p>Some text in the modal.</p><p>Some text in the modal.</p>
          <p>Some text in the modal.</p>
          <p>Some text in the modal.</p>
          <ul id="sortable" class="ui-sortable">
          
            <li class="ui-state-default disabled">
                <img src="https://www.w3schools.com/bootstrap/paris.jpg" alt=" ">
            </li>
            <li class="ui-state-default disabled">
                <img src="https://www.w3schools.com/bootstrap/paris.jpg" alt=" ">
           ...

CSS

#sortable {
    margin: 10px -3px;
    padding: 0;
    list-style: none;
}

 #sortable li {
    position: relative;
    margin: 0 0 6px;
    padding: 0 1px;
    display: inline-block;
    width: calc(20% - 3px);
    list-style: none;
    cursor: pointer;
    float:left;
}

#make-pdf #sortable li {
    vertical-align: top;
    float: left;
    margin-left: 3px;
}

img {
    border: none;
    max-width: 100%;
    vertical-align: top;
}

JavaScript

$('#sortable').sortable();
 $('#sortable').disableSelection();