super-select
Version:
Flexible aternative to select element
39 lines (32 loc) • 1.1 kB
HTML
<html>
<head>
<meta charset="utf-8" />
<title>Super Select</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
<div class="container">
<header>
<h1>Super Select</h1>
<p>A replacement for selects/datalists on web applications</p>
</header>
<div class="content">
<span class="react-root"></span>
</div>
</div>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<script type="text/javascript" src="dist/SuperSelect.js"></script>
<script type="text/javascript">
(function () {
SuperSelect = SuperSelect.default;
const example = document.createElement("script");
example.type = "text/babel";
example.src = "example.jsx";
document.body.appendChild(example);
}());
</script>
</body>
</html>