UI components made with htm.
npm i -S @substrate-system/htmimport { button } from '@substrate-system/htm/button'
import '@substrate-system/htm/css/button'This exposes ESM and common JS via package.json exports field.
import * as components from '@susbtrate-system/htm'require('@susbtrate-system/htm')import '@susbtrate-system/htm/css'
// or modules
import '@susbtrate-system/htm/css/button'This package exposes minified JS files too. Copy them to a location that is accessible to your web server, then link to them in HTML.
cp ./node_modules/@substrate-system/htm/dist/index.min.js ./public/htm.min.js<script type="module" src="./htm.min.js"></script>