BetterSelect/index.html
2024-12-17 18:36:02 +01:00

19 lines
473 B
HTML

<script type="module">
import {BetterSelect} from "/src/BetterSelect.js"
customElements.define("better-select", BetterSelect)
</script>
<link rel="stylesheet" href="/src/BetterSelect.css">
<style>
:root {
font-family: sans-serif;
}
</style>
<better-select>
<span slot="placeholder">Select some stuff here</span>
<option value="first">First value</option>
<option value="second">Second value</option>
<option value="third">Third value</option>
</better-select>