JSFiddle - React, Tailwind, and code Playground

by handsoncode

HTML

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css">
<script src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script>
<div id="parentContainer">
  <div id="example1" class="hot"></div>
</div>

CSS

body {
  background-color: #fff;
  margin: 0;
  padding: 0;
}

#parentContainer {
  width: 650px;
  border: 2px solid #09B4ED;
}

JavaScript

var example1 = document.getElementById('example1');

var hot = new Handsontable(example1, {
  data: Handsontable.helper.createSpreadsheetData(30, 20),
  colHeaders: true,
  rowHeaders: true,
  preventOverflow: 'horizontal',
  licenseKey: 'non-commercial-and-evaluation'
});