BetterSelect/index.html

20 lines
473 B
HTML
Raw Normal View History

2024-12-17 17:36:02 +00:00
<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>